About front-end development

<!-- Basic common configuration of mobile terminal-->
    <meta name="viewport"
      content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">



"babel-runtime":"^6.0.0",//Escape es6 syntax
    "fastclick":"^1.0.6",//Solve the problem of 300ms delay in mobile click
"babel-polyfill":"^6.2.0",//Patch, escape the ES6 API


import 'babel-polyfill'//must be written at the top
import fastclick from 'fastclick'

fastclick.attach(document.body)//Bind to body



    "jsonp": "0.2.1"


Empirical value of 20ms, because the usual browser refresh time is 17ms
    mounted() {
      setTimeout(() => {
        
      }, 20)
    }


Object.assign({}, commonParams, {...}) fuses multiple properties to the target object (first parameter)
const data = Object.assign({}, commonParams, {
    platform: 'h5',
    uin: 0,
    needNewCode: 1
  })



web security

ignore configuration

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326442210&siteId=291194637