摘要:
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; namespace Singleton { public class SingletonTest { private static Single... 阅读全文
摘要:
Array.prototype.forEach = function (callback, context) { for (var i = 0; i < this.length; i++) { callback.call(context || null, this[i], i, this); } } var arr = [... 阅读全文
摘要:
function Person() { } Person.prototype.dance = function () { } function Ninjia() { } Ninjia.prototype = new Person(); var ninjia = new Ninjia(); 阅读全文
摘要:
点我 var button={ clicked:false, click:function(){ debugger; this.clicked=true; console.assert(!(button.clicked),"The button has been clicked"); } } var elem... 阅读全文