继续浏览精彩内容
慕课网APP
程序员的梦工厂
打开
继续
感谢您的支持,我会继续努力的
赞赏金额会直接到老师账户
将二维码发送给自己后长按识别
微信支付
支付宝支付

input iqidin mazmun tepix

qaytix
关注TA
已关注
手记 104
粉丝 37
获赞 165

<!DOCTYPE html>

<html>

<head>

<meta charset="utf-8">

<meta http-equiv="X-UA-Compatible" content="IE=edge">

<title></title>

<link rel="stylesheet" href="">

<style type="text/css" media="screen">

span{

background: red;

}

</style>

</head>

<body>

<input type="text" id="input">

<button id="btn">搜索</button>

<hr>

<p id="content">

You should probably watch at 1.5x and skip parts you are familiar with. I go through pretty ploddingly with only a couple edits at the beginning. The rest is stream of consciousness. Here is the code 

</p>

</body>

</html>

<script type="text/javascript">

var btn=document.getElementById('btn');

var content=document.getElementById('content');


btn.=function(){

var input=document.getElementById('input');

var val=input.value;

if(input.value<=0){

return;

}

//Awal html ning Text Kimmit Ni elwal Dim 

var text=content.innerText;

//Html Ning Html Mazmun Ni Kuruk Diwattim

content.innerHTML='';

//Html Ning Mazmu Niga =  Elwal Gan Text Kimmat Ni , span Bar Kimmat Ka Almax Turwattim 

content.innerHTML=text.replace(val,"<span class='key'>"+val+"</span>")

}

</script>


打开App,阅读手记
0人推荐
发表评论
随时随地看视频慕课网APP

热门评论

<input>

查看全部评论