摘要:
方法一代码如下:document.getElementById("selectid").options.length = 0; 方法二 代码如下:document.formName.selectName.options.length = 0; 方法三 代码如下:document.getElement... 阅读全文
摘要:
//1,js自带的eval函数,其中需要添加小括号eval('('+str+')'); function strToJson(str){ var json = eval('(' + str + ')'); return json; } //2,new Function形式 function strT 阅读全文
摘要:
var myDate = new Date();myDate.getYear(); //获取当前年份(2位)myDate.getFullYear(); //获取完整的年份(4位,1970-????)myDate.getMonth(); //获取当前月份(0-11,0代... 阅读全文
摘要:
<a href="javascript:history.back()">返回</a> <a href="javascript:window.history.back()">返回</a> <a href="#" onclick="javascript:history.back()">返回</a> 阅读全文
摘要:
配置eclipse.ini文件-vmargs-Xms1024m-Xmx3072m-Dfile.encoding=UTF-8 该行设置编码启动卡window--preferences搜索startup找到startup and shutdown 关掉不需要的启动项validation慢window... 阅读全文