百度:Tangram
基本上就是个百度版jQuery,2.0版本使用链式API,更像了。
配套的还有UI库Magic和模版引擎BaiduTemplate(和ejs很像)
腾讯:JX
理念在介绍里面写的很详细,代码清晰,注释丰富,可读性很好,但只有文档没有实例。
比较传统的大块头框架,本质上来说还是一堆工具方法和对象的堆积,提供了很基本的模块化的开发方式,但没有模块间的依赖关系支持。
| // example vite.config.js | |
| import { cdn } from './vite-plugin-cdn' | |
| export default { | |
| plugins: [ | |
| // also supported: esm.run, jspm | |
| // loads the dep over the CDN during dev | |
| // auto downloads and includes into the bundle during build | |
| cdn('skypack', { | |
| vue: '^3.0.5' |
| <SomeComponent> | |
| <template #header> | |
| <div>Header message</div> | |
| </template> | |
| <template #item="{ item }"> | |
| <div class="item">{{ item.text }}</div> | |
| </template> | |
| <template #footer> |
| var https = require('https'), | |
| user = process.argv[2], | |
| opts = parseOpts(process.argv.slice(3)) | |
| request('/users/' + user, function (res) { | |
| if (!res.public_repos) { | |
| console.log(res.message) | |
| return | |
| } | |
| var pages = Math.ceil(res.public_repos / 100), |
When Vue detects data mutation, it asynchronously defer DOM updates to the next "tick" so that multiple mutations trigger only one update cycle. In versions before 2.5, Vue has been deferring updates using what is known as the "Microtask" (as explained in this blog post).
This works fine in most situations, but we discovered an edge case:
| alias ng="npm list -g --depth=0 2>/dev/null" | |
| alias nl="npm list --depth=0 2>/dev/null" |
| <div id="app"> | |
| <button id="reset">reset</button> | |
| <button id="outer">no leak</button> | |
| <div id="container"> | |
| <button id="inner">leak</button> | |
| <span>1</span> | |
| <span>2</span> | |
| <span>3</span> | |
| <span>4</span> | |
| <span>5</span> |
| title | Vue 3 将成为新的默认版本 |
|---|---|
| date | 2022-01-20 |
| author | 尤雨溪 |
| gravatar | eca93da2c67aadafe35d477aa8f454b8 |
| @youyuxi | |
| hidden | true |
划重点:Vue 3 将在 2022 年 2 月 7 日成为新的默认版本!
| // This requires the WIP branch at https://github.com/vuejs/vue-loader/tree/next | |
| const path = require('path') | |
| const { VueLoaderPlugin } = require('vue-loader') | |
| module.exports = { | |
| mode: 'development', | |
| entry: path.resolve(__dirname, './main.js'), | |
| output: { | |
| path: path.resolve(__dirname, 'dist') |
This is the aggregated changelog for 3.4 that includes changes landed in all alpha and beta pre-releases. For changelog of individual pre-releases, please check here.