8.21

1.select 的操作: 

获取select选中的项的值 $('#aa option:selected').val(); $('#aa option:selected').text();

js设置select选中的项 $("#aa option:first").prop("selected", 'selected'); $('#zhengjian-name').find("option[value = '8']").attr("selected",true);

2.判断是否是数组 $.isArray()

3.Object.freeze() 冻结一个对象,冻结指的是不能向这个对象添加新的属性,不能修改其一有的属性的值,不能删除已有属性,以及不能修改该对象已有属性的可枚举性,可配置性,可写性,该方法返回被冻结的对象。

4.window.replace()  替换当前页面的url  。

5.document.execCommand('copy');

 

posted @ 2018-08-21 18:03  暮色之雪的诀别之海  阅读(79)  评论(0编辑  收藏  举报