判断函数调用是否来自new操作符.
摘要:
Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->function A () { A.prototype._ = A; if (this._ === A) { alert('new call') } el... 阅读全文
posted @ 2008-07-24 10:42 文宇祥 阅读(212) 评论(0) 推荐(0) 编辑