Daily 1215
学习
Understanding REST
Principles of REST:
- Resources expose easily understood directory structure URIs.
- Representations transfer JSON or XML to represent data objects and attributes.
- Messages use HTTP methods explicitly (for example, GET, POST, PUT, and DELETE).
- Stateless interactions store no client context on the server between requests. State dependencies limit and restrict scalability. The client holds session state.
Idempotency 新词,中文翻译过来是:冪等, 这是put与post的最大的区别
idempotent 的意思是如果相同的操作再執行第二遍第三遍,結果還是跟第一遍的結果一樣 (也就是說不管執行幾次,結果都跟只有執行一次一樣)。
Vue
Vue Async Components 异步加载组件
Vue.component('async-webpack-example', function (resolve) {
// This special require syntax will instruct Webpack to
// automatically split your built code into bundles which
// are loaded over Ajax requests.
require(['./my-async-component'], resolve)
})
但是,如下webpack 2 + ES2015代码却不行了
Vue.component(
'async-webpack-example',
// The `import` function returns a `Promise`.
() => import('./my-async-component')
)
TODO
vim
YCM vue不支持 打开vue文件导致ycm server挂了,没找到合适的办法解决
目前手动启动ycm server:YcmRestartServer
最后修改
February 7, 2021
: doc: 整理daily日记 (0dcc57d)