yyh

Results 121 issues of yyh

+ ### `tslint`自动格式化样式 设置 --> 搜索 --> tslint --> Auto Fix On Save

+ RBAC + [https://baike.baidu.com/item/RBAC](https://baike.baidu.com/item/RBAC) + [http://www.woshipm.com/pd/1150093.html](http://www.woshipm.com/pd/1150093.html)

+ aglio [文档工具](https://www.npmjs.com/package/aglio)

```js disabledDate(current) { // 选择范围在今天之前(不包括今天) return current && !current.isBetween(moment().startOf('year'), moment().subtract(1, 'days')); // 选择范围在今天之前(包括今天) return current && current >= moment().endOf('day'); } ```

+ 地址:https://www.docker.com/community-edition + 安装地址: https://download.docker.com/mac/stable/Docker.dmg docker load --input docker load --input hzland.tar window ``` docker run --name some10-nginx -p 8082:80 -v //d/work/code:/usr/share/nginx/html -v //d/work/code/handover/code/nginx.conf:/etc/nginx/conf.d/default.conf -d nginx ``` ----- window docker...

[webpack打包性能](https://zhuanlan.zhihu.com/p/21748318) ```js new webpack.DllPlugin({ }) ``` webpack.DllPlugin 的选项中: + path 是 manifest.json 文件的输出路径,这个文件会用于后续的业务代码打包; + name 是 dll 暴露的对象名,要跟 output.library 保持一致; + context 是解析包路径的上下文,这个要跟接下来配置的 webpack.config.js 一致。 ---- 代码分割: ```js import ('xxx').then(function...

Css

## 转换原则 > + 在`+`运算符下,大部分转换成string类型(`String()`),其它运算符(包括`==`)都转换成number类型 > + 对象转换:`obj.valueOf()` 返回到是否是基本类型(一般返回是自身),若不是**再用**`toString()` > + Date类型是先用`toString()` ,依据返回值是否是基本类型在使用`valueOf()` 转换为数值: + 部分值转换 `parseInt(string,radix); ` radix取值2到36之间的数值; parseFloat();不同于parseInt的是必须以十进制转换,没有基模式; + 整个值转换 `Number(string)`:既可转整,又可转浮点; 隐式转换, 参考: + [阮一峰 类型转换](https://javascript.ruanyifeng.com/grammar/conversion.html) + [`==`...

javascript

## [vue-cli配置说明](https://loulanyijian.github.io/vue-cli-doc-Chinese/static.html) config/index.js ```js proxyTable: { '/apis': { // 测试环境 target: 'https://www.zhihu.com/', // 接口域名 changeOrigin: true, //是否跨域 pathRewrite: { '^/apis': 'api' //访问`/apis`等同于访问 https://www.zhihu.com/api } } ``` requst请求 ```js axios.get('/apis/v4/search_v3?t=general&q=test&correction=1&offset=5&limit=10&search_hash_id=ec719636db7492f7d3bca816403049f7').then((res) =>...

[https://blog.csdn.net/qq_30051139/article/details/52293219](https://blog.csdn.net/qq_30051139/article/details/52293219) 但是这样做还是无法解决『前端还是需要安装后端的开发环境,才能跑通模板(.ejs、.vm、.jsp)』。 然后作者可以了解下基于 FIS 的前后端解决方案,比如jello、fis-pure、fis3-smarty等,它们都可以很方便的解决『多页应用的前后端分离,及前端工程化』问题。

[node-sass node 版本对应 官网](https://github.com/sass/node-sass) ---------------------- ~~管理员权限运行:[node-gyp](https://github.com/nodejs/node-gyp#installation)~~ windows: ~`npm install --global --production windows-build-tools`~