💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
[TOC] ***** ## web-runtim web运行时 >[info] import ~~~ ;(导入)运行时基础 import Vue from 'core/index' import { createPatchFunction } from 'core/vdom/patch' import * as nodeOps from 'web/runtime/node-ops' import platformDirectives from 'web/runtime/directives/index' import baseModules from 'core/vdom/modules/index' import platformModules from 'web/runtime/modules/index' import { query, isUnknownElement, isReservedTag } from 'web/util/index' import { inBrowser } from 'core/util/env' ~~~ >[info] module ~~~ ;核心配置扩展 Vue.config.isUnknownElement = isUnknownElement Vue.config.isReservedTag = isReservedTag ;核心选项扩展 Vue.options.directives = platformDirectives ;创建patch函数 const modules = baseModules.concat(platformModules) Vue.prototype.__patch__ = inBrowser ? createPatchFunction({ nodeOps, modules }) : function noop () {} ;Vue.$mount修正 Vue.prototype.$mount = function (el) { this.$el = el && query(el) this._mount() } ;导出运行时Vue export default Vue ~~~ >[info] export ~~~ ;(导出)运行时Vue export default Vue ~~~