JS 一些知识点补漏
2017-07-12 10:38
225 查看
var array=['1','2','3','fdy']; for(var x=0;x<array.length;x++){ console.log(array[x]); } for(var x in array){ console.log(array[x]); } array.forEach(function(element) { console.log(element); }); person=new Object(); person.firstname="Bill"; person.lastname="Gates"; person.age=56; person.eyecolor="blue"; console.log("----"+person.age); var Student={ name:'fdy', age:23, id:1009 }; console.log(Student.id); Student.hieht=180; delete Student.hieht; console.log(Student.hieht);
相关文章推荐
- Js小知识及一些常见易混淆的知识点
- Node.js一些知识点(操作步骤)
- JS数组的介绍及创建以及一些关于数组的知识点
- JS 的一些知识点
- sea.js的一些简单的知识点
- Vue.js在使用中的一些注意知识点
- ASP.Net一些知识点(关于.net与JS如何交互)
- JS的一些常用知识点
- js 一些知识点
- js正则表达式 match exec test,以及g模式的一些知识点
- js一些小知识点
- 关于js的一些关键知识点(call,apply,callee, caller,clourse,prototypeChain)
- 最近的一些JS知识点
- JS你可能还不知道的一些知识点(一)
- 一些js面试高频知识点的总结
- 从JS变态题中学到的一些JS生僻或重要知识点
- JS中变量类型及运算的一些知识点总结
- Vue.js在使用中的一些注意知识点
- JS初学的一些易错的知识点
- vue.js的一些知识点