摘要:
添加一个 config patch 文件即可,然后放在 App_Config 下,内容如下: sitecore 默认 value 是 100。 <?xml version="1.0" encoding="utf-8" ?> <configuration xmlns:patch="http://www 阅读全文
摘要:
// config 其实就是每个 layui 实例的 cache 属性 // 自定义模块事件 Layui.prototype.onevent = function (modName, events, callback) { if (typeof modName !== "string" || typ 阅读全文
摘要:
这是一个简易版的 layui 模块定义和加载模块封装 layui github: https://github.com/layui/layui (function () { "use strict"; // 定义 layui 类 var Layui = function () { this.v = 阅读全文
摘要:
js 获取当前脚本对象 对象类型:HTMLScriptElement // 获取当前脚本对象 var script = document.currentScript; console.log(script); // 获取所有js脚本对象 var jsScripts = doc.scripts; fo 阅读全文
摘要:
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 阅读全文
摘要:
还有一些方便的库: Memory.dll https://newagesoldier.com/memory.dll/ https://github.com/erfg12/memory.dll EasyHook https://easyhook.github.io/ https://github.co 阅读全文
摘要:
开发环境 .net sdk version : 8.0 https://learn.microsoft.com/en-us/dotnet/core/docker/publish-as-container?pivots=dotnet-8-0 修改 csproj 文件,添加以下内容 <Project S 阅读全文
摘要:
微软中国镜像源: https://nuget.cdn.azure.cn/v3/index.json 阅读全文
摘要:
public static class MapExtension { public static void Fill(this object src, object dest) { if (src == null || dest == null) return; var srcType = src. 阅读全文
摘要:
安装 pyexecjs pip install PyExecJS2 使用 import os import execjs import execjs.runtime_names current_dir = os.path.dirname(__file__) js_abs_path = os.path 阅读全文