删除以数字开头的加‘.’的行首序号 ^[0-9][0-9][.] Read More
posted @ 2016-03-29 23:14
jeffery1010
Views(354)
Comments(0)
Diggs(0)
背景 我们常在页面引用js遇到下面情况 <script src="1.js"></script> <script src="2.js"></script> <script src="3.js"></script> <script src="4.js"></script> <script src="5 Read More
posted @ 2016-03-29 18:46
jeffery1010
Views(164)
Comments(0)
Diggs(0)
需求背景 // 实际开发常需要将一些公用方法打包放在一个js文件,写法大致如下 function f1(){ // ... } function f2(){ // ... } function f3(){ // ... } // 上面的函数f1()\f2()\f3()...,组成一个模块;使用时直接 Read More
posted @ 2016-03-29 17:17
jeffery1010
Views(183)
Comments(0)
Diggs(0)
原型继承-prototype function Person(name,age){ this.name=name; this.age=age; } Person.prototype.sayHello=function(){ alert("使用原型方法--Name:"+this.name); } va Read More
posted @ 2016-03-29 16:27
jeffery1010
Views(173)
Comments(0)
Diggs(0)

浙公网安备 33010602011771号