摘要: XHTML 要求正确嵌套 XHTML 所有元素必须关闭 XHTML 区分大小写 XHTML 属性值要用双引号 XHTML 用 id 属性代替 name 属性 XHTML 特殊字符的处理 阅读全文
posted @ 2017-11-22 11:55 Samsara315 阅读(135) 评论(0) 推荐(0)
摘要: 1.对象字面量创建 var person={ name:'aaa', age:18 } 2.构造函数创建 function Person(name,age){ this.name=name; this.age=age; this.say=function(){ alert('hello'+this. 阅读全文
posted @ 2017-11-22 11:38 Samsara315 阅读(164) 评论(0) 推荐(0)