摘要: document.addEventListener( "plusready", function(){ console.log('app') },false) 阅读全文
posted @ 2019-05-05 09:03 (⊙o⊙)买噶 阅读(539) 评论(0) 推荐(0) 编辑
摘要: 1、html 部分 2、node部分 需要安装一下插件 3、nodejs代码实现 4、mySql.js 阅读全文
posted @ 2019-04-20 10:43 (⊙o⊙)买噶 阅读(1231) 评论(0) 推荐(0) 编辑
摘要: 1.引入jquery和cityjson 2.ajax请求 阅读全文
posted @ 2019-04-11 09:19 (⊙o⊙)买噶 阅读(7645) 评论(0) 推荐(0) 编辑
摘要: 1、node中使用websocket需要导入 nodejs-websocket 模块 ,全局下载 nodejs-websocket 2、nodejs 3、用户1的页面 4、用户2的页面 阅读全文
posted @ 2019-03-27 18:24 (⊙o⊙)买噶 阅读(1313) 评论(0) 推荐(0) 编辑
摘要: 1、nodeJs 2、html 阅读全文
posted @ 2019-03-27 14:47 (⊙o⊙)买噶 阅读(8997) 评论(0) 推荐(0) 编辑
摘要: 场景:(少量数据)把所有数据查询出来存到变量里,进行本地搜索 优点:查询速度快 缺点:数据有可能,不能实时 阅读全文
posted @ 2019-03-27 10:27 (⊙o⊙)买噶 阅读(291) 评论(0) 推荐(0) 编辑
摘要: GitHub:上传本地项目 1、克隆GitHub仓库 :git clone https://github.com/xxx/xxx.git 2、将项目文件放入克隆的文件里 3、git add * 4、git commit -m"提交日志" 5、git push GitHub:更新本地文件 1、查看当前 阅读全文
posted @ 2019-03-25 14:50 (⊙o⊙)买噶 阅读(367) 评论(0) 推荐(0) 编辑
摘要: 安装 浏览器前缀需要 post-loader、autoprefixer 配置webpack.config.js { test:/\.css$/, use:[ {loader:'style-loader'}, { loader:'css-loader', options:{ importLoaders 阅读全文
posted @ 2019-03-21 15:05 (⊙o⊙)买噶 阅读(4711) 评论(0) 推荐(0) 编辑
摘要: 解决办法 .babelrc 文件中presets设置了env 选项,需要安装 babel-preset-env插件 阅读全文
posted @ 2019-03-21 09:08 (⊙o⊙)买噶 阅读(3481) 评论(0) 推荐(1) 编辑
摘要: webpack安装: npm install webpack -g //-g 全局 npm install webpack -s //-s 局部 npn install webpack@x.xx -g //x.xx 版本号webpac卸载: npm uninstall webpack -g npm 阅读全文
posted @ 2019-03-13 10:24 (⊙o⊙)买噶 阅读(1479) 评论(0) 推荐(1) 编辑