目录

RegExp.prototype.flags

它返回对创建实例原型的数组函数的引用。

语法 (Syntax)

RegExp.constructor        

返回值 (Return Value)

返回创建此对象实例的函数。

例子 (Example)

var re = new RegExp( "string" ); 
console.log("re.constructor is:" + re.constructor);           

输出 (Output)

re.constructor is:function RegExp() { [native code] }       
↑回到顶部↑
WIKI教程 @2018