-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
E2007 李小刚
authored and
E2007 李小刚
committed
Mar 29, 2019
1 parent
c98f20f
commit 6958736
Showing
2 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,6 @@ Git!!!! | |
|
||
第二次写!!! | ||
哈哈!! | ||
|
||
第三次写 !!! | ||
拉下来写!! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
(function(scoped,na){ | ||
Function.prototype.method=function(name,fn){ | ||
this.prototype[name]=fn; | ||
return this | ||
} | ||
function Fa(name){ | ||
this.name=name; | ||
}; | ||
Fa.method('getName',function(){ | ||
return this.name | ||
}).method('setName',function(){ | ||
return this.name+'ceshi' | ||
}) | ||
scoped.na=new Fa('小刚'); | ||
}(window,$)) | ||
|
||
console.log($.getName()) |