2020-08-27 17:18:57 +08:00

25 lines
511 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 全局状态 FesFesx
管理全局状态的容器独立于组件之外的一个Map对象这样任何组件中都可以操作FesFesx中的值。
```html
<template>
<div class="article">
{{FesFesx.data}}
</div>
</template>
<script type="text/ecmascript-6">
export default {
FesReady: function(){
this.FesFesx.set("data", 1)
}
}
</script>
```
## 函数
* get(prop)
根据prop获取值
* set(prop, value)
设置一个全局的状态