centos 7安装mongodb 4.2社区版(免费)
https://mongodb.net.cn/manual/tutorial/install-mongodb-on-red-hat/ 0,防火墙 sudo systemctl status firewalld //active(running)就意味着防火墙打开了 sudo systemctl stop firewalld //关闭 sudo systemctl disable firewalld //禁用防止自…
776 2021-07-14 去围观.editorconfig统一代码规范
会自动帮我们格式化一些代码,让代码阅读尽量统一。 以下工具都内置支持editorconfig无需插件,在根目录创建.editorconfig就行 webstorm配置参数
708 2021-07-07 去围观plop——用命令创建初始的空模板
plopfile.js功能类似于像创建一个xx.html的空模板,模板里面的有固定的初始化数据。 安装: npm i -g plop@2.5.0 //3.x是typeScript的 根目录创建:plopfile.js module.exports = function(plop) { // controller generator plop.…
720 2021-07-07 去围观解决:ReferenceError: primordials is not defined
原因是gulp 3.x不能在node.js 10以上的版本运行 解决方法一:安装nvm把node.js切换到10.x 方法二:编辑package.json "scripts": { . . "preinstall": "npx npm-force-resolutions" }, "resolutions": { "graceful-fs": "^4.2.4" }, …
1,597 2021-07-06 去围观推荐:node.js微信H5页面jssdk签名配置
公众号,小程序里面使用H5页面基本都会有分享H5的功能,这时候使用JS-SDK签名 https://developers.weixin.qq.com/doc/offiaccount/OA_Web_Apps/JS-SDK.html html: axios.get('https://gzh.jskoa.com/getjsapi_ticket?url='+window.location.href).the…
705 2021-07-05 去围观