日常学习
Brian_Jing
这个作者很懒,什么都没留下…
展开
-
获取url里的参数
```javascript var url = URL(location.href); url.searchParams.get('args') let obj = new URLSearchParams(location.search) obj.get('args')原创 2022-05-30 10:41:14 · 116 阅读 · 0 评论 -
jquery 实现输入框联想搜索
jquery 实现输入框联想搜索 <div class="autoSupRelative"> <input type="text" class="input" name="CompanyName" id="CompanyName" autocomplete="off"> <ul class="autoSupAbsolute"></ul> </div> .autoSupRelative{position: relative;paddi原创 2021-09-28 09:22:23 · 1180 阅读 · 0 评论 -
前端面试题
1.箭头函数和普通函数的区别 箭头函数是匿名函数,不能作为构造函数,不能使用new 箭头函数不能绑定arguments 箭头函数没有原型属性 var a = ()=>{ return 1; } function b(){ return 2; } console.log(a.prototype); // undefined console.log(b.prototype); // {constructor: ƒ} 箭头函数的this永远指向其上下文的this,没有办改变其指向,原创 2020-06-29 16:13:03 · 966 阅读 · 0 评论