摘要: 1、使用eval函数 eval(scriptcode) 2、使用new Function const jscode = new Function(scriptcode); jscode(); 阅读全文
posted @ 2025-12-16 14:09 Redamancy_TT 阅读(0) 评论(0) 推荐(0)
摘要: 1、选择器 (1)通配符: $("input[id^='code']");//id属性以code开始的所有input标签 $("input[id$='code']");//id属性以code结束的所有input标签 $("input[id*='code']");//id属性包含code的所有inpu 阅读全文
posted @ 2025-12-16 10:20 Redamancy_TT 阅读(1) 评论(0) 推荐(0)
摘要: window.open ('page.html', 'newwindow', 'height=100, width=400, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=n o, status 阅读全文
posted @ 2025-12-16 10:06 Redamancy_TT 阅读(4) 评论(0) 推荐(0)
摘要: 1 function prompt(message, style, time){ 2 style = (style undefined) ? 'alert-success' : style; 3 time = (time undefined) ? 1200 : time; 4 $('<div id= 阅读全文
posted @ 2022-04-15 18:27 Redamancy_TT 阅读(188) 评论(0) 推荐(0)
摘要: $.fn.ImgZoomIn = function () { var window_h = $(window).height(); var scroll_h = $(window).scrollTop(); bgstr = '<div id="ImgZoomInBG" style="position 阅读全文
posted @ 2022-04-15 17:19 Redamancy_TT 阅读(114) 评论(0) 推荐(0)
摘要: 1 function getBrowserInfo() { 2 var ua = navigator.userAgent.toLocaleLowerCase(); 3 var browserType = null; 4 if (ua.match(/msie/) != null || ua.match 阅读全文
posted @ 2022-04-14 16:36 Redamancy_TT 阅读(69) 评论(0) 推荐(0)