如何判断对象是否有某个属性?
使用 ES6 中的 hasOwnProperty(),来判断是否存在某个属性。
var obj = { a: 1, b: 2, c: 'hello' };console.log(obj.hasOwnProperty('c')); // trueconsole.log(obj.hasOwnProperty('d')); // false
终于弄懂这个知识点了!!!
请实现KMP算法?
请你谈谈Cookie的弊端
cookies,sessionStorage 和 localStorage 的区别?
基于TCP协议建立连接和结束连接的过程
终于弄懂这个知识点了!!!