在zemanta的blog上看到一篇文章,後邊來自Eran Medan的回帖讓人驚訝,一起圍觀一下:I agree, I can't keep up, I just finished learning backbone.js and now I'm found out on that it's old news, and I should use ember.js, cross that, it has opinions, I should use Meteor, no, AngularJS,
function Base(){}Base.prototype = {x:10, y:[]}function A(){}A.prototype = new Base();var a = new A();a.y.push("first");a.x = 9;console.log(a.x);console.log(a.y);function B(){}B.prototype = new Base();var b = new B();b.y.push("second");b.x =
function Close() { var ua=navigator.userAgent var ie=navigator.appName=="Microsoft Internet Explorer"?true:false if(ie) { var IEversion=parseFloat(ua.substring(ua.indexOf("MSIE ")+5,ua.indexOf(";",ua.indexOf("MSIE ")))) if(IEversion< 5.5) { var
來源:http://www.cnblogs.com/jianyi0115/articles/677712.htmlhttp://www.cnblogs.com/fxwdl/archive/2009/09/13/1565795.html在此作備忘:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1 <!DOCTYPE html PUBLIC "
在網上看到有不少JS設計模式的樣本。今天參照:http://www.cnblogs.com/iloveu/archive/2009/03/31/1426234.html寫了一下,記錄在此,僅作備忘:Code highlighting produced by Actipro CodeHighlighter
無意中發現這樣一個現象,JavaScript可以根據瀏覽器類別決定是否註冊函數。樣本:1if(document.all)2{3 function al(){alert('aa');}4}5al()在IE和FF下運行時,在IE下將彈出'aa'對話方塊。而在FF下將不會。換成如下代碼:1if(!document.all)2{3 function al(){alert('aa');}4}5al()在IE下和FF下都可以alert('aa');不明白的地方,既然if(document.all)可以實
先上代碼:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--><%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.