摘要: 1 //Javascript 2 window.onload=function () 3 { 4 var oBtn=document.getElementById('btn1'); 5 6 oBtn.onclick=function () 7 { 8 alert('a'); 9 }; 10 }; 11 //jquery ... 阅读全文
posted @ 2018-06-13 18:34 研一研二 阅读(106) 评论(0) 推荐(0) 编辑
摘要: JavaScript 基于 prototype ,是面向对象的语言,但 JavaScript 不使用类,或者说类就是构造函数。 String.prototype.方法名 本 地 常用对象:Function,String、Date、Array、Number、Boolean、RegExp、Error 内 阅读全文
posted @ 2018-06-13 14:44 研一研二 阅读(87) 评论(0) 推荐(0) 编辑