model原理详解(2)

const { createApp, reactive } = require('./vue.ts').default; const App = { setup() { const react = reactive({ a: { b: { c: { d: { e: 111 } } } } }); // 测试异步反应 setTimeout(() => { react.a.b.c.d.e = 222; }, 100); return react; } }; createApp().mount(App, '#my-app');

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:http://www.heiqu.com/b2e626f5a72ef8af5b52b535aab38713.html