摘要:
function replace(value) { const valueArr = value.split('.'); if (valueArr.length > 2) { value = `${valueArr[0]}.${valueArr[1]}`; } const result = (val 阅读全文
摘要:
const data = [{ id: 1, parentid: 0, text: '集团' }, { id: 2, parentid: 0, text: '集团2' }, { id: 3, parentid: 1, text: '集团1-公司1' }, { id: 4, parentid: 1, 阅读全文
摘要:
my.ini配置: [mysql] # 编码格式 default-character-set=utf8 [mysqld] # 端口号 port=3306 #设置服务端的编码格式 character-set-server=utf8 # mysql根目录 basedir=C:\mysql # 放所有数据 阅读全文
摘要:
最近学习node,在某视频中提到node切换版本,切换版本原因在于以前的项目版本不一致,从而导致频繁安装不同版本的node,如果有了管理工具,就很方便了,怕记不住所以这里记录一下。 下面记录安装步骤 从https://github.com/coreybutler/nvm-windows这个地址下载n 阅读全文
摘要:
function base64(s) { return window.btoa(unescape(encodeURIComponent(s))) } function exportExcel() { var table = document.getElementsByTagName('table') 阅读全文
摘要:
大家应该都对es6新出的模板字符串比较熟悉,语义得出返回的是字符串,通过"``"将内容包裹起来形成一个新字符串.方便在于拼接参数直接"${参数}"就可以实现。 但这篇文章的重点在于: 字符串标记 const name1 = '运动'; const name2 = '游戏'; let str = ta 阅读全文
摘要:
删除 mongod.exe --remove 重新注册服务 mongod.exe --config "D:\Program Files\MongoDB\Server\4.2\bin\mongod.cfg" --install 这样就注册成功拉 阅读全文
摘要:
/// <summary> /// 获取jssdk配置 /// </summary> /// <returns></returns> public IActionResult GetJSSDKConfig() { string appid = ""; // appid string secret = 阅读全文
摘要:
var arr = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]; var newArr = []; for (var index in arr) { var isFind = false; var value = arr[index]; for (var i = 2; 阅读全文