weex icon indicating copy to clipboard operation
weex copied to clipboard

生命周期ready 和init 代码不产生效果

Open 1021727984 opened this issue 9 years ago • 2 comments

我在Weex Preview和weex playground 运行时,发现生命周期init 和ready的代码都没有运行,直接粘贴你们的代码也不行,只有created里面的才会运行,

1021727984 avatar Feb 15 '17 09:02 1021727984

可否在 http://dotwe.org/vue 提供例子? 注意明确 .we 和 .vue 的语法和用法。参考 Vue 的生命周期。 Vue 2.0 里没有 ready。

Hanks10100 avatar Feb 15 '17 15:02 Hanks10100

好的,vue2.0确实去掉了init 和ready的生命周期,

1021727984 avatar Feb 16 '17 02:02 1021727984