当耐特

Results 396 comments of 当耐特

src-mp里也可以放兼容性代码啊,比如: ```js if(typeof window !== 'undefined'){ //浏览器 }else{ //小程序 } ```

```js if(typeof window !== 'undefined'){ //浏览器 loadScript('./xxx.js') }else{ //小程序 } ```

@tag 是为了少写几个字符,等同于 define(name, ctor)。渲染时注册做不到。

> //create.js > //option.data = store.data c此处被store数据覆盖重写了 合并后就可以了 > option.data = Object.assign(option.data,store.data) 声明了data 不会进入这个else,store的data会挂到$下

> 为什么经常出现这个页面视图获取不到store数据另个页面又可以也都声明了的 具体一点

抱歉,multi-store 的 omix 没有同步至 2.4.0,同步完成就ok了。具体 diff 可以看这里https://github.com/Tencent/omi/commit/b57e0546b06ac8c85591bb38a7d5ce30997fe81b 多谢。

![屏幕快照 2020-02-18 上午10 39 25](https://user-images.githubusercontent.com/7917954/74699185-0b0a6480-523b-11ea-9869-35b376dcff68.png)

Omix 2已经合并了啊

贴一段能复现的链接可以打开开发者工具