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
function Polygon(sides){ | |
this.sides = sides; | |
this.setSides = function(s) {this.sides=s;} | |
}; | |
function Tri(sides){ | |
Polygon.apply(this,[sides]); | |
} | |
var tri=new Tri(4); | |
console.log(tri.sides); |
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
七月十二号交了2700的房钱,三个月 |
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
参考资料: | |
http://dmitrysoshnikov.com/ecmascript/javascript-the-core/ | |
http://www.quora.com/JavaScript/What-is-the-difference-between-__proto__-and-prototype?q=javascript+__proto__+prototype | |
笔记: | |
(1) |
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
/** | |
* Created with JetBrains WebStorm. | |
* User: mobin | |
* Date: 13-7-16 | |
* Time: 下午3:28 | |
* To change this template use File | Settings | File Templates. | |
*/ | |
$(document).ready(function(){ | |
(function(exports){ |
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
foo = function() { | |
this.myName = "Foo function."; | |
} | |
foo.prototype.sayHello = function() { | |
alert(this.myName); | |
} | |
foo.prototype.bar = function() { | |
setTimeout(this.sayHello.call(this), 1000); | |
} | |
var f = new foo(); |
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
ul#position li.on{ | |
box-shadow: inset 0 1px 3px -1px #28b4ea,0 1px 2px rgba(0,0,0,.5); | |
background-color: #1293dc; | |
background-image: -webkit-gradient(linear,left top,left bottom,color-stop(0%,#1293dc),color-stop(100%,#0f6297)); | |
background-image: -webkit-linear-gradient(top,#1293dc,#0f6297); | |
background-image: linear-gradient(top,#1293dc,#0f6297); | |
} |
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
function throttle( fn, time ) { | |
var t = 0; | |
return function() { | |
var args = arguments, ctx = this; | |
clearTimeout(t); | |
t = setTimeout( function() { | |
fn.apply( ctx, args ); | |
}, time ); | |
}; |
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
function changehandler(){ | |
console.log("change"); | |
var file = document.getElementById('fileupload').files[0]; | |
var reader=new FileReader(); | |
reader.onload = (function(theFile) { | |
return function(e) { | |
console.log(e.target.result); | |
// img 元素 |
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
8月13号借给老査500元 |
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
8.15垫付50块保洁费 |
OlderNewer