![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
js方法集合
Fade Away
这个作者很懒,什么都没留下…
展开
-
双向绑定-原生
<!DOCTYPE html><html> <head> <meta charset="utf-8"> <title></title> </head> <body> input1<input type="text" id="input1"> input2<in...原创 2019-11-25 17:25:32 · 104 阅读 · 0 评论 -
for in遍历对象 + 12行 实现 深拷贝
for in 遍历数组和对象for of 遍历数组或者对象的值,值遍历,遍历属性名for ofvar obj = [0,2,{a:5}]; for (let key of obj) { console.log(key,obj[key]) }现象解释这个 key 其实是value 才对,我这里故意写错的也就是 说 obj[0],obj[2],obj[{a:5}...原创 2019-11-01 16:52:57 · 748 阅读 · 0 评论 -
简单的搜索功能
知识点1str.indexOf("") ==> 0; != -1; 就是全选效果str.indexOf(“content”) != -1 表示在str中,就添加到列表知识点2 AJAX知识点3 数组的 forEach getData(""); button.onclick = function () { var str = input_search.v...原创 2019-04-16 19:57:20 · 428 阅读 · 0 评论