08 2018 档案

摘要:1. 一个对象的 __proto__ 和 prototype 指向同一个值 (通常这个值叫做原型);prototype是构造函数特有的 别的对象都没有这种属性 2.关于js 中this的指向性问题 var a = { foo : function(){ console.log(this); } }; 阅读全文
posted @ 2018-08-23 10:08 暮色之雪的诀别之海 阅读(125) 评论(0) 推荐(0)
摘要:1.select 的操作: 获取select选中的项的值 $('#aa option:selected').val(); $('#aa option:selected').text(); js设置select选中的项 $("#aa option:first").prop("selected", 's 阅读全文
posted @ 2018-08-21 18:03 暮色之雪的诀别之海 阅读(111) 评论(0) 推荐(0)
只有注册用户登录后才能阅读该文。
posted @ 2018-08-02 18:52 暮色之雪的诀别之海 阅读(4) 评论(0) 推荐(0)