扫码一下
查看教程更方便
constructor 属性返回对 regexp 对象属性创建的函数。
语法如下:
regexp.constructor
返回创建此对象实例的函数。
所有主流浏览器都支持 constructor 属性。
javascript regexp constructor property
输出结果:
re.constructor is: function regexp() { [native code] }