摘要: https://cdnjs.com/libraries 各种js的网上链接http://www.zouyesheng.com/angular.html angularjs学习http://www.runoob.com/ 前端各种教程http://www.php100.com/html/program... 阅读全文
posted @ 2015-12-01 17:25 web倩倩 阅读(122) 评论(0) 推荐(0) 编辑
摘要: instanceof运算代码 1 function instance_of(L, R) { 2 //L 表示左表达式,R 表示右表达式 3 var O = R.prototype; 4 // 取 R 的显示原型 5 L = L.__proto__; 6 // 取 L 的隐式原型 7 while... 阅读全文
posted @ 2015-12-01 10:55 web倩倩 阅读(307) 评论(0) 推荐(0) 编辑
摘要: 1 var metaEl = document.querySelector('meta[name="viewport"]'); 2 var scale; 3 scale = document.documentElement.clientWidth / 320; 4 meta... 阅读全文
posted @ 2015-11-30 17:05 web倩倩 阅读(196) 评论(0) 推荐(0) 编辑
摘要: &&和||在JQuery源代码内尤为使用广泛,由于本人没有系统的学习js,所以只能粗略的自我理解出来,希望大家指点下。粗略理解如下: a() && b() :如果执行a()后返回true,则执行b()并返回b的值;如果执行a()后返回false,则整个表达式返回a()的值,b()不执行;a() || 阅读全文
posted @ 2015-11-30 16:05 web倩倩 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 1、mouseover和mouseenter 区别 mouseenter指鼠标进入元素时触发,鼠标在元素子元素上不触发。 mouseover指鼠标进入元素时触发,在元素进入子元素会触发。在此引用一个例子 1 2 3 不论鼠标指针穿过被选元素或其子元素,都会触发 mouseover 事件。 4... 阅读全文
posted @ 2015-11-20 16:50 web倩倩 阅读(116) 评论(0) 推荐(0) 编辑