摘要:
转载自:http://www.zhihu.com/question/20289071 //call 和 apply 都是为了改变某个函数运行时的 context 即上下文而存在的,换句话说,就是为了改变函数体内部 this 的指向。 var func1 = function(arg1, arg2) 阅读全文
摘要:
//commonjs包规范-说明 { "name": "leyi",//包名,不允许空格 "description": "hello qiezijiucai!~",//包的描述信息 "version": "1.0.0",//版本号 major.minor.reversion 格式 "homepage": "http://www.cnblogs.com/leyi",//当前包的网... 阅读全文
摘要:
---恢复内容开始---1:MIME TYPE:text/cache-manifest 服务器配置MIME类型2:需要由你创建的:NAME.manifest 创建manifest文件3:给 标签加 manifest 属性:-----------------------------------... 阅读全文
摘要:
var arr=[5,2,4,7,6,3,1,0,8];function quickSort(arr){ if(arr.length<=1){ return arr; } var baseInex=Math.floor(arr.length/2); var ba... 阅读全文
摘要:
Web Storage又分为两种: sessionStorage localStorage sessionStorage将数据保存在session中,浏览器关闭会清空,而localStorage则一直将数据保存在客户端本地;保存数据:localStorage.setItem(key,value); ... 阅读全文
摘要:
原型继承: function extend(Child, Parent) { var F = function(){}; F.prototype = Parent.prototype; Child.prototype = new F(); Child.prototype.constructor = Child; Child.uber = Parent.pr... 阅读全文
摘要:
http://www.hlmblog.com/183.html 阅读全文
摘要:
Flex 布局教程:语法篇http://www.ruanyifeng.com/blog/2015/07/flex-grammar.html Flex 布局教程:实例篇http://www.ruanyifeng.com/blog/2015/07/flex-examples.html 阅读全文
摘要:
MySQL中定义数据字段的类型对你数据库的优化是非常重要的。MySQL支持多种类型,大致可以分为三类:数值、日期/时间和字符串(字符)类型。数值类型:tinyint smallint mediumint int bigint float doubledecimal(size,d) numeric(... 阅读全文
摘要:
原理:Web页面上调用js文件时不受是否跨域的影响(不仅如此,我们还发现凡是拥有”src”这个属性的标签都拥有跨域的能力,比如---------------------------------------------------------------------------------------... 阅读全文