11 2018 档案
摘要:一.打包 一般情况也就js需要压缩下,mac的话就用gulp配置打包so easy 二.避免300毫秒延时问题 1/禁止缩放 <meta name="viewport" content="width=device-width user-scalable= 'no'"> 使用这个方法必须完全禁用缩放来
阅读全文
摘要:<span style="font-family: Arial, Helvetica, sans-serif;"><input type="password" name="password" id="password" onkeydown="return banInputSapce(event);"
阅读全文
摘要:<textarea maxlength="100" onchange="this.value=this.value.replace(/\s+/g,'').substring(0, 100)" onkeydown="this.value=this.value.replace(/\s+/g,'').su
阅读全文
摘要:一。用引入js方式 1 在main.js中引入 //引入websocket import '@/assets/js/sockjs.min.js'; import '@/assets/js/stomp.min.js'; 2 在代码里书写 //与服务器建立==>监听是否被扫 scanConnect(){
阅读全文
摘要:一:用node配置(确保有node) 1. npm install http-server 2.cd 到指定目录 3.http-server 二:webpack配置 1.在config里的index.js中 function getIPAdress(){ var interfaces = requi
阅读全文
摘要:1. config 下的index.js,修改“assetsPublicPath: './'或是''(即删掉这个), //打包路径错误的修改” 2. build下的utils.js 增加“publicPath: '../../'”
阅读全文
摘要:前置知识与应用环境: 由于前端传给后台的数据分为3种: 1:json 2:string("name='mia'&age=25")==>此时可用querystring.stringify将对象转化为序列化的字符串 3:表单形式提交(contentType:form-data) 这里主要记下querys
阅读全文
摘要:1.找到config 里头index.js插入配置本机IP地址 /** . * @returns {String} 本机ip地址 */ function getIPAdress(){ var interfaces = require('os').networkInterfaces(); for(va
阅读全文
摘要:1.下载lib-flexible 2.在index.html中 <html data-dpr = '1'> 在common.css中写 html { font-size: 10vw; } html { font-size: 10vw; } html { font-size: 10vw; } 3.设置
阅读全文
摘要:错误码 /Users/admin/.npm/_logs/2018-11-11T13_26_33_010Z-debug.log 解决 1.清除缓存 npm cache clean --force 2.重新安装 npm install
阅读全文
摘要:1.避免©转义 <div dangerouslySetInnnerHTML={{_html:'cc © 2015'}} /> 2.展开属性 const data={name:'foo',value:'bar'}; const component=<Component {...da
阅读全文
摘要:1. koroFileHeader 文件头部需在设置里配置"fileheader.customMade": { "Description": "文件描述", "Author": "Long maomao", "Date": "Do not edit", "LastEditors": "Long ma
阅读全文

浙公网安备 33010602011771号