JS prototype constructor转载之四
来源:互联网 发布:尼特消防主机怎么编程 编辑:程序博客网 时间:2024/06/07 03:38
js constructor属性
constructor属性返回对创建此对象的数组函数的引用。
语法:object.constructor
<script type="text/javascript">
var test=new Array();
if(test.constructor==Array)
{
document.write("this is an array");
}
if(test.constructor==Boolen)
{
document.write("this is a Boolen");
}
if(test.constructor==String)
{
document.write("this is a string");
}
</script>
输出:
This is an Array
- JS prototype constructor转载之四
- JS prototype constructor转载之二
- JS prototype constructor转载之三
- JS prototype constructor转载之五
- JS prototype constructor转载之六
- JS Prototype constructor 转载之一
- js老生常谈之this,constructor ,prototype
- js老生常谈之this,constructor ,prototype
- js老生常谈之this,constructor ,prototype
- <转载>Js中Prototype、__proto__、Constructor、Object、Function关系介绍
- js constructor和prototype
- js中的prototype与constructor
- js中的prototype和constructor
- js中的constructor 和prototype
- js 中的this,constructor ,prototype
- js中的constructor和prototype
- js中的constructor与prototype
- js中的prototype和constructor
- JS prototype constructor转载之二
- JS prototype constructor转载之三
- UIKeyboard键盘相关知识点-IOS开发
- iBatis动态SQL标签用法
- php编码规范(未完待续)
- JS prototype constructor转载之四
- JS prototype constructor转载之五
- googleMap 谷歌地图
- Javascript this指针详解
- [乐意黎原创] JAVA对ArrayList排序
- JS prototype constructor转载之六
- 十六周任务1
- 学习使用DirectX
- 写在前面