提示:描述都写在代码的注释中 在initMixin()的最后执行了如下操作: if (vm.$options.el) { vm.$mount(vm.$options.el); } 复制代码 执行$mount()方法 query() function query (el) { if (typeof el === 'string') { var selected = document.querySelector(el); if (!selected) { // 如果...
提示:描述都写在代码的注释中 在initMixin()的最后执行了如下操作: if (vm.$options.el) { vm.$mount(vm.$options.el); } 复制代码 执行$mount()方法 query() function query (el) { if (typeof el === 'string') { var selected = document.querySelector(el); if (!selected) { // 如果...