上一页 1 2 3 4 5 6 ··· 9 下一页
摘要: 添加一个 config patch 文件即可,然后放在 App_Config 下,内容如下: sitecore 默认 value 是 100。 <?xml version="1.0" encoding="utf-8" ?> <configuration xmlns:patch="http://www 阅读全文
posted @ 2024-05-21 14:14 灵火 阅读(5) 评论(0) 推荐(0) 编辑
摘要: // config 其实就是每个 layui 实例的 cache 属性 // 自定义模块事件 Layui.prototype.onevent = function (modName, events, callback) { if (typeof modName !== "string" || typ 阅读全文
posted @ 2024-05-10 22:52 灵火 阅读(39) 评论(0) 推荐(0) 编辑
摘要: 这是一个简易版的 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) 编辑
摘要: 1. AMD // 1. https://requirejs.org/docs/jquery.html // 2. https://docs.moodle.org/dev/Guide_to_adding_third_party_jQuery_for_AMD define([jQuery], func 阅读全文
posted @ 2024-05-07 16:31 灵火 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 还有一些方便的库: Memory.dll https://newagesoldier.com/memory.dll/ https://github.com/erfg12/memory.dll EasyHook https://easyhook.github.io/ https://github.co 阅读全文
posted @ 2024-04-25 16:02 灵火 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 开发环境 .net sdk version : 8.0 https://learn.microsoft.com/en-us/dotnet/core/docker/publish-as-container?pivots=dotnet-8-0 修改 csproj 文件,添加以下内容 <Project S 阅读全文
posted @ 2024-04-24 22:02 灵火 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 微软中国镜像源: https://nuget.cdn.azure.cn/v3/index.json 阅读全文
posted @ 2024-04-24 21:40 灵火 阅读(129) 评论(0) 推荐(0) 编辑
摘要: public static class MapExtension { public static void Fill(this object src, object dest) { if (src == null || dest == null) return; var srcType = src. 阅读全文
posted @ 2024-03-29 11:03 灵火 阅读(16) 评论(1) 推荐(0) 编辑
摘要: 安装 pyexecjs pip install PyExecJS2 使用 import os import execjs import execjs.runtime_names current_dir = os.path.dirname(__file__) js_abs_path = os.path 阅读全文
posted @ 2024-03-27 20:38 灵火 阅读(3) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 9 下一页