随笔分类 - JavaScript
JS使用遇到的问题
摘要:var tempForm = document.createElement("form"); tempForm.id = "tempForm1"; tempForm.method = "post"; tempForm.action = url; tempForm.target = "_self";
阅读全文
摘要:x = Math.floor(x);//去尾法 x = Math.round(x);//四舍五入法 x = Math.ceil(x);//进一法
阅读全文
摘要://监听页面关闭window.onbeforeunload = function () { if (event.clientX > document.body.clientWidth && event.clientY < 0 || event.altKey || event.type == "bef
阅读全文
摘要:$(window).resize(function () { }); timer = setInterval("Func1", 1000); //1S触发一次 clearInterval(timer); //清除计时器
阅读全文
摘要:list.splice(index, length); 第一个参数是索引位置,第二个参数是删除对象数目
阅读全文
摘要:在td所在table设置属性: width:100%; table-layout:fixed; 设置td属性: overflow:hidden white-space:nowrap
阅读全文
摘要:function JSONToExcelConvertor(JSONData, FileName) { //先转化json if (JSONData.length == 0) { layer.msg("请选择导出的数据!"); return false; } var arrData = typeof
阅读全文
摘要:设置仪表盘大小时,不能使用grid属性去设置,需要 在series中对每个仪表盘设置 radius:'80%' 来调整仪表盘大小
阅读全文
摘要:在html的<head>中加入 <link rel="shortcut icon" href="#" /> 即可。
阅读全文
摘要:<tr id="Part1"> <td style="width:30%"> <div id="E1" style="height:200px"></div> </td> <td> <P>TOP1:</P> <div >{{msg1}}</div> </td> <td> <p>TOP2:</p> <
阅读全文
摘要:在done函数内加上以下代码即可: $(".layui-table-body").find("td").each(function (index, element) { if ($(this).attr("data-field") >= 0) { $(this).css("display", "no
阅读全文

浙公网安备 33010602011771号