技巧
来源:互联网 发布:逆袭网络剧片段 编辑:程序博客网 时间:2024/05/16 00:50
// 让下拉列表默认选中第一个 $(".questionType option:first").attr('selected', true) // 把ueditory编辑器的值设为空 editor.setContent(''); //获取ueditory编辑器的值 editor.getContent('');
今天又先发现了一种写法.
$('.questionType').val(1);$('.questionType').change()
// 获取select的选中的值 $(".questionType option:selected").val()
// 页面倒计时var i = 10;setInterval(function(){if(i>0){document.getElementById('time').innerHTML = i;i = i-1;}else{location.href="http://www.baidu.com";} },1000);