摘要: 这是一个简易版的 layui 模块定义和加载模块封装 layui github: https://github.com/layui/layui (function () { "use strict"; // 定义 layui 类 var Layui = function () { this.v = 阅读全文
posted @ 2024-05-09 09:34 灵火 阅读(95) 评论(0) 推荐(0) 编辑
摘要: js 获取当前脚本对象 对象类型:HTMLScriptElement // 获取当前脚本对象 var script = document.currentScript; console.log(script); // 获取所有js脚本对象 var jsScripts = doc.scripts; fo 阅读全文
posted @ 2024-05-09 08:50 灵火 阅读(2) 评论(0) 推荐(0) 编辑