摘要: JS中的函数没有重载的概念 js中不像是java,拥有重载的概念,所以函数名相同的函数,js会认为是同一个函数,所以会输出写在最后的一个函数的结果。 结果是: 阅读全文
posted @ 2018-07-30 23:21 微光TeaRs 阅读(458) 评论(0) 推荐(0)
摘要: // 第一种创建对象的方式:先定义类再创建对象 function stu(sno, name, age){ this.sno = sno; this.name = name; this.age = age; this.study = function(){ alert("学号为"+this.sno+ 阅读全文
posted @ 2018-07-30 23:15 微光TeaRs 阅读(102) 评论(0) 推荐(0)