最贊回答 / MIT的夢
你試試把new去掉后是什么效果。你會發(fā)現(xiàn)為什么去掉后是想要的結(jié)果。這里視頻里this.name的this指向的是方法。setInterval里面的this指向的是全局的global,一般是window對象。所以才輸出空。如果將new...
2017-04-16
最新回答 / 慕移動9181930
是的,html的規(guī)范是這樣的在編程的時候可以先使用a=a 1的形式,但是要知道有a 這種表達(dá)式,等熟悉了之后自然而然的就會掌握這幾個表達(dá)式
2017-04-04
最新回答 / Amy_sh
要實現(xiàn)test("a", "c"),只需要把可選參數(shù)放在中間,傳參的時候可選參數(shù)可傳可不傳。undefined作為參數(shù)傳的時候直接寫undefined就行,就像你說的,test("a", undefined, "c").
2017-04-01
最新回答 / qq_五百丁_0
declare?function?create(o:?object?|?null):?void;create({?prop:?0?});?//?OKcreate(null);?//?OKcreate(42);?//?Errorcreate("string");?//?Error
2017-02-18
已采納回答 / 慕尼黑9635467
試試看這個吧http://stackoverflow.com/questions/30344228/cannot-compile-external-modules-unless-the-module-flag-is-provided
2017-01-22