hashCode
\rg3-cli\public\config-open\brower-system-wx.js
https://blog.csdn.net/zhoujiaping123/article/details/101318568
String.prototype.hashCode = function () {
//如果已经缓存了结果,直接返回
if (this.hashcode !== undefined) {
return this.hashcode
}
let hashcode = 0
for (let i = 0; i < this.length; i++) {
//溢出需要每次运算后立即处理,否则可能超过js数值的表示范围。
hashcode = hashcode * 31 + this.charCodeAt(i)
hashcode &= 0xffffffff
}
this.hashcode = hashcode
return hashcode
}
Win解决方案 node_modules共享
首先以管理员身份运行 cmd(命令提示符)
< 注意:注意项目文件夹中不要有node_modules,项目路径和公共路径根据自己的路径去修改 >
<!-- 命令 -->
mklink /d D:\myProject\demo-1\node_modules D:\myProject\node_modules
<!-- 目录结构 -->
mklink /d <项目路径>\node_modules <公共node_modules路径>
npm run serve 启动项目
Mac解决方案 node_modules共享
方法和Win大致一样,只是命令符不同
<!-- 命令mklink /d 换成 ls -s-->
<!-- 命令 -->
ls -s /User/myProject/demo-1/node_modules /User/myProject/node_modules
<!-- 目录结构 -->
ls -s <项目路径>/node_modules <公共node_modules路径>
npm run serve 启动项目
Dexie.js - 简化 JavaScript 调用浏览器数据库的开源工具库
本地化存储
let localKey = 'devops-build';
that.$localforageCache.getItem(localKey).then(function (value) {
let dataT = value || [];
dataT.push({
id:`${dataT.mkey}/${dataT.field}`,
mkey: dataT.mkey,
field: dataT.field,
createDate: dayjs().format("YYYY-MM-DD"),
data: dataT,
});
that.$localforageCache.setItem(localKey, dataT).then(function (value) { }).catch(function (err) { });
}).catch(function (err) { });
daisyui(文档chrome如果问题使用eadge打开)
https://daisyui.com/docs/cdn/
https://tailwindcss.com
https://daisyui.com/theme-generator/
https://github.com/saadeghi/theme-change
module.exports = {
daisyui: {
themes: [
{
mytheme: {
"primary": "#570DF8",
"secondary": "#F000B8",
"accent": "#37CDBE",
"neutral": "#3D4451",
"base-100": "#FFFFFF",
"info": "#3ABFF8",
"success": "#36D399",
"warning": "#FBBD23",
"error": "#F87272",
},
},
],
},
plugins: [
require('daisyui'),
],
//...
}
bootcss
https://themes.getbootstrap.com/
https://v5.bootcss.com/docs/5.1/getting-started/introduction/
https://v5.bootcss.com/docs/layout/css-grid/
https://v5.bootcss.com/docs/utilities/spacing/
https://v5.bootcss.com/docs/components/offcanvas/
https://v5.bootcss.com/docs/customize/color/
fullter
###
https://daisyui.com/docs/cdn/
文档更新时间: 2024-01-11 13:35 作者:admin