随笔分类 -  js

摘要:function zkss(objtd, tableid) { if ($(objtd).html() == "展开更多") { $("#" + tableid + " .changeTr").removeAttr("style"); $(objtd).html("收缩"); } else { ... 阅读全文
posted @ 2017-06-09 17:42 萧紫紫 阅读(2230) 评论(0) 推荐(0)
摘要:获取数组中的随机数 判断浏览器是否支持 localStorage 阅读全文
posted @ 2016-11-07 16:32 萧紫紫 阅读(410) 评论(0) 推荐(0)
摘要:layer.open({ type: 1, title: "登陆", area: ["393px", "293px"], content: $("#dloginbox") }); layer.msg("用户名或密码不能为空", { icon: 2 }); layer.msg("登陆成功", { ic 阅读全文
posted @ 2016-10-10 16:16 萧紫紫 阅读(2926) 评论(0) 推荐(0)
摘要:js cs css 阅读全文
posted @ 2016-10-10 16:08 萧紫紫 阅读(278) 评论(0) 推荐(0)
摘要:removeClass() 方法从被选元素移除一个或多个类。注释:如果没有规定参数,则该方法将从被选元素中删除所有类。语法$(selector).removeClass(class)参数 class 可选。规定要移除的 class 的名称。如需移除若干类,请使用空格来分隔类名。如果不设置该参数,则会 阅读全文
posted @ 2016-10-10 15:57 萧紫紫 阅读(1142) 评论(0) 推荐(0)
摘要:var mydate = new Date(); mydate.getYear(); //获取当前年份(2位) mydate.getFullYear(); //获取完整的年份(4位,1970-????) mydate.getMonth(); //获取当前月份(0-11,0代表1月) mydate.getDate(); //获取当前日(1-31) mydate.getDay(); //获取当前星期... 阅读全文
posted @ 2016-08-29 10:09 萧紫紫 阅读(176) 评论(0) 推荐(0)