This file contains hidden or 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
var settings = $.extend({ | |
xx : 'xx', | |
int : 1 | |
}, options || {}); |
This file contains hidden or 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
var proApp = { | |
inner : function(){ | |
alert(proApp.defaultSettings.arg1); | |
}, | |
defaultSettings : { | |
arg1 : 1, | |
str : "string" | |
} | |
} |
This file contains hidden or 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
$.each([1,2,3,4,5,6], function(i, v){ | |
alert(v); | |
if(v > 4){ | |
return; | |
} | |
}); |
This file contains hidden or 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
<div > | |
<img src="images/logo.jpg" alt="" style="display:inline-block; vertical-align:middle;" /> | |
<span style="display:inline-block; vertical-align:middle;">xxxxxxx</span> | |
</div> |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Hello, data!</title> | |
<script type="text/javascript" src="lib/d3.js"></script> | |
</head> | |
<body> | |
<div id="viz"></div> |
This file contains hidden or 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
var scope = "s1"; | |
var f = function(){ | |
console.log(scope); // will print undefined | |
var scope = "f1"; | |
} |
This file contains hidden or 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
@Override | |
public boolean equals(Object other) { | |
if (this == other) { | |
return true; | |
} | |
if (!(other instanceof TaskAssignment)) { | |
return false; | |
} | |
TaskAssignment that = (TaskAssignment) other; | |
return new EqualsBuilder().append(this.getAcount(), that.getAcount()).append(this.getTask(), that.getTask()).isEquals(); |
This file contains hidden or 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
var strict = (function(){ return !this; }()); |
This file contains hidden or 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
(function(){ //匿名函数 | |
//模块代码 | |
}());//结束函数定义并立即调用它 |
This file contains hidden or 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
Math.floor(Math.random()*10000) |
OlderNewer