我看到了 john resig 的一篇文章,解释了 JavaScript 继承。 http://ejohn.org/blog/simple-javascript-inheritance/
在这篇文章中有一个类实现代码,其中起始行有一个正则表达式
fnTest = /xyz/.test(function(){xyz;}) ? /\b_super\b/ : /.*/;
谁能告诉我这是什么意思?
我看到了 john resig 的一篇文章,解释了 JavaScript 继承。 http://ejohn.org/blog/simple-javascript-inheritance/
在这篇文章中有一个类实现代码,其中起始行有一个正则表达式
fnTest = /xyz/.test(function(){xyz;}) ? /\b_super\b/ : /.*/;
谁能告诉我这是什么意思?