@@ -175,7 +175,7 @@ type: api
175175
176176## 全局 API
177177
178- < h3 id = " Vue-extend " >Vue .extend( options )</ h3 >
178+ ### Vue.extend( options )
179179
180180- ** 参数** :
181181 - ` {Object} options `
@@ -214,7 +214,7 @@ type: api
214214
215215- ** 参考** :[ 组件] ( ../guide/components.html )
216216
217- < h3 id = " Vue-nextTick " >Vue .nextTick( [callback, context] )</ h3 >
217+ ### Vue.nextTick( [ callback, context] )
218218
219219- ** 参数** :
220220 - ` {Function} [callback] `
@@ -241,7 +241,7 @@ type: api
241241
242242 > 2.1.0 起新增:如果没有提供回调且在支持 Promise 的环境中,则返回一个 Promise。请注意 Vue 不自带 Promise 的 polyfill,所以如果你的目标浏览器不原生支持 Promise (IE:你们都看我干嘛),你得自己提供 polyfill。
243243
244- < h3 id = " Vue-set " >Vue .set( target, key, value )</ h3 >
244+ ### Vue.set( target, key, value )
245245
246246- ** 参数** :
247247 - ` {Object | Array} target `
@@ -256,7 +256,7 @@ type: api
256256
257257 <p class =" tip " >注意对象不能是 Vue 实例,或者 Vue 实例的根数据对象。</p >
258258
259- < h3 id = " Vue-delete " >Vue .delete( target, key )</ h3 >
259+ ### Vue.delete( target, key )
260260
261261- ** 参数** :
262262 - ` {Object | Array} target `
@@ -272,7 +272,7 @@ type: api
272272
273273 <p class =" tip " >目标对象不能是一个 Vue 实例或 Vue 实例的根数据对象。</p >
274274
275- < h3 id = " Vue-directive " >Vue .directive( id, [definition] )</ h3 >
275+ ### Vue.directive( id, [ definition] )
276276
277277- ** 参数** :
278278 - ` {string} id `
@@ -303,7 +303,7 @@ type: api
303303
304304- ** 参考** :[ 自定义指令] ( ../guide/custom-directive.html )
305305
306- < h3 id = " Vue-filter " >Vue .filter( id, [definition] )</ h3 >
306+ ### Vue.filter( id, [ definition] )
307307
308308- ** 参数** :
309309 - ` {string} id `
@@ -323,7 +323,7 @@ type: api
323323 var myFilter = Vue .filter (' my-filter' )
324324 ```
325325
326- < h3 id = " Vue-component " >Vue .component( id, [definition] )</ h3 >
326+ ### Vue.component( id, [ definition] )
327327
328328- ** 参数** :
329329 - ` {string} id `
@@ -346,7 +346,7 @@ type: api
346346
347347- ** 参考** :[ 组件] ( ../guide/components.html )
348348
349- < h3 id = " Vue-use " >Vue .use( plugin )</ h3 >
349+ ### Vue.use( plugin )
350350
351351- ** 参数** :
352352 - ` {Object | Function} plugin `
@@ -359,7 +359,7 @@ type: api
359359
360360- ** 参考** :[ 插件] ( ../guide/plugins.html )
361361
362- < h3 id = " Vue-mixin " >Vue .mixin( mixin )</ h3 >
362+ ### Vue.mixin( mixin )
363363
364364- ** 参数** :
365365 - ` {Object} mixin `
@@ -370,7 +370,7 @@ type: api
370370
371371- ** 参考** :[ 全局混合] ( ../guide/mixins.html#全局混合 )
372372
373- < h3 id = " Vue-compile " >Vue .compile( template )</ h3 >
373+ ### Vue.compile( template )
374374
375375- ** 参数** :
376376 - ` {string} template `
@@ -393,7 +393,7 @@ type: api
393393
394394- ** 参考** :[ 渲染函数] ( ../guide/render-function.html )
395395
396- < h3 id = " Vue-version " >Vue .version</ h3 >
396+ ### Vue.version
397397
398398- ** 细节** :提供字符串形式的 Vue 安装版本号。这对社区的插件和组件来说非常有用,你可以根据不同的版本号采取不同的策略。
399399
@@ -1415,7 +1415,7 @@ type: api
14151415
14161416## 实例方法 / 数据
14171417
1418- <h3 id="vm-watch">vm .$watch( expOrFn, callback, [options] )</h3>
1418+ ### vm .$watch( expOrFn, callback, [options] )
14191419
14201420- **参数**:
14211421 - ` {string | Function } expOrFn`
@@ -1482,7 +1482,7 @@ type: api
14821482 // 立即以 `a` 的当前值触发回调
14831483 ` ` `
14841484
1485- <h3 id="vm-set">vm .$set( target, key, value )</h3>
1485+ ### vm .$set( target, key, value )
14861486
14871487- **参数**:
14881488 - ` {Object | Array } target`
@@ -1497,7 +1497,7 @@ type: api
14971497
14981498- **参考**:[Vue.set](#Vue-set)
14991499
1500- <h3 id="vm-delete">vm .$delete( target, key )</h3>
1500+ ### vm .$delete( target, key )
15011501
15021502- **参数**:
15031503 - ` {Object | Array } target`
@@ -1511,7 +1511,7 @@ type: api
15111511
15121512## 实例方法 / 事件
15131513
1514- <h3 id="vm-on">vm .$on( event, callback )</h3>
1514+ ### vm .$on( event, callback )
15151515
15161516- **参数**:
15171517 - ` {string | Array < string> } event ` (数组只在 2.2.0+ 中支持)
@@ -1531,7 +1531,7 @@ type: api
15311531 // => "hi"
15321532 ` ` `
15331533
1534- <h3 id="vm-once">vm .$once( event, callback )</h3>
1534+ ### vm .$once( event, callback )
15351535
15361536- **参数**:
15371537 - ` {string} event `
@@ -1541,7 +1541,7 @@ type: api
15411541
15421542 监听一个自定义事件,但是只触发一次,在第一次触发之后移除监听器。
15431543
1544- <h3 id="vm-off">vm .$off( [event, callback] )</h3>
1544+ ### vm .$off( [event, callback] )
15451545
15461546- **参数**:
15471547 - ` {string | Array < string> } event ` (只在 2.2.2+ 支持数组)
@@ -1557,7 +1557,7 @@ type: api
15571557
15581558 - 如果同时提供了事件与回调,则只移除这个回调的监听器。
15591559
1560- <h3 id="vm-emit">vm .$emit( event, [...args] )</h3>
1560+ ### vm .$emit( event, [...args] )
15611561
15621562- **参数**:
15631563 - ` {string} event `
@@ -1567,7 +1567,7 @@ type: api
15671567
15681568## 实例方法 / 生命周期
15691569
1570- <h3 id="vm-mount">vm .$mount( [elementOrSelector] )</h3>
1570+ ### vm .$mount( [elementOrSelector] )
15711571
15721572- **参数**:
15731573 - ` {Element | string} [elementOrSelector]`
@@ -1605,13 +1605,13 @@ type: api
16051605 - [生命周期图示](../guide/instance.html#生命周期图示)
16061606 - [服务端渲染](../guide/ssr.html)
16071607
1608- <h3 id="vm-forceUpdate">vm .$forceUpdate()</h3>
1608+ ### vm .$forceUpdate()
16091609
16101610- **示例**:
16111611
16121612 迫使 Vue 实例重新渲染。注意它仅仅影响实例本身和插入插槽内容的子组件,而不是所有子组件。
16131613
1614- <h3 id="vm-nextTick">vm .$nextTick( [callback] )</h3>
1614+ ### vm .$nextTick( [callback] )
16151615
16161616- **参数**:
16171617 - ` {Function } [callback]`
@@ -1645,7 +1645,7 @@ type: api
16451645
16461646- **参考**:[Vue.nextTick](#Vue-nextTick)
16471647
1648- <h3 id="vm-destroy">vm .$destroy()</h3>
1648+ ### vm .$destroy()
16491649
16501650- **用法**:
16511651
0 commit comments