08 2018 档案
摘要:1. 一个对象的 __proto__ 和 prototype 指向同一个值 (通常这个值叫做原型);prototype是构造函数特有的 别的对象都没有这种属性 2.关于js 中this的指向性问题 var a = { foo : function(){ console.log(this); } };
阅读全文
摘要:1.select 的操作: 获取select选中的项的值 $('#aa option:selected').val(); $('#aa option:selected').text(); js设置select选中的项 $("#aa option:first").prop("selected", 's
阅读全文

浙公网安备 33010602011771号