yyh
yyh
``` { "terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe", "window.zoomLevel": 1, "emmet.triggerExpansionOnTab": true } ```
[https://www.zhihu.com/question/268622554/answer/384881779](https://www.zhihu.com/question/268622554/answer/384881779)
[easy mock]() [YAPi](http://yapi.demo.qunar.com) [mock.js]()
```js ``` ```js document.querySelector('body').addEventListener('touchstart', function (ev) { event.preventDefault(); }); ``` [https://segmentfault.com/q/1010000003921576](https://segmentfault.com/q/1010000003921576) --------- ```js //实现滚动条无法滚动 var mo=function(e){e.preventDefault();}; /***禁止滑动***/ function stop(){ document.body.style.overflow='hidden'; document.addEventListener("touchmove",mo,false);//禁止页面滑动 } /***取消滑动限制***/ function move(){ document.body.style.overflow='';//出现滚动条 document.removeEventListener("touchmove",mo,false); } ``` [http://www.qdfuns.com/notes/17420/d05b4b0710c6dab6a92f79eb5a5628cd](http://www.qdfuns.com/notes/17420/d05b4b0710c6dab6a92f79eb5a5628cd)...
+ 上下拉动滚动条时卡顿、慢 ```css E { -webkit-overflow-scrolling: touch; overflow-scrolling: touch; } // Android3+和iOS5+支持CSS3的新属性为overflow-scrolling ``` + 禁止复制、选中文本 ``` E { -webkit-user-select: none; -moz-user-select: none; -khtml-user-select: none; user-select: none; } ``` + 长时间按住页面出现闪退...
### 执行时机 + 由首页进入user页面: `global beforeEach` > `router beforeEnter` > `component beforeRouteEnter` > `global beforeResolve` > `global afterEach` > `mounted` + 由user回到首页: `component beforeRouteLeave` => `global beforeEach` => `global beforeResolve`...
```js FAILURE: Build failed with an exception. * What went wrong: A problem occurred configuring project ':app'. > You have not accepted the license agreements of the following SDK components:...
+ Android Studio [https://blog.csdn.net/hebbely/article/details/78970918](https://blog.csdn.net/hebbely/article/details/78970918) + [JDK 下载](http://www.oracle.com/technetwork/java/javase/downloads/index.html) ``` 新建名为“classpath”的变量名,变量值为".;%JAVA_HOME%\lib;%JAVA_HOME%\lib\tools.jar " 新建名为”JAVA_HOME“的变量名,变量值为之前安装jdk的目录,例如本人的为”C:\Program Files\Java\jdk1.7.0_40“ 在已有的系统变量”path“的变量值加上”;%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin“(注意,每个变量值是以”;“隔开,变量值开头的分号就起这个作用)自此配置完成。 ``` + [Android Studio](http://www.android-studio.org/) + [http://jspang.com/2017/07/12/weex/#01](http://jspang.com/2017/07/12/weex/#01) + [https://www.cnblogs.com/cnwutianhao/p/5487758.html](https://www.cnblogs.com/cnwutianhao/p/5487758.html) + [http://mobilesite.github.io/2017/12/17/weex-enviroment/](http://mobilesite.github.io/2017/12/17/weex-enviroment/) + [https://blog.csdn.net/hebbely/article/details/78970918](https://blog.csdn.net/hebbely/article/details/78970918)
### JSX 1. JSX代码外面括上小括号,防止分号自动插入 ```jsx const element = ( Hello, {formatName(user)}! ); ``` 2. 在编译之后呢,JSX 其实会被转化为普通的 JavaScript 对象。 3. Babel 转译器会把 JSX 转换成一个名为 `React.createElement()` 的方法调用。 ```jsx // 注意: 以下示例是简化过的(不代表在 React...