<script>
return {
data: function () {
return {
page_demo_data: 'page demo data',
lists: [
'a','a','a','a','a','a',
]
}
},
methods: {
page_methods: function () {
console.log(this.page_demo_data);
},
},
on: {
pageMounted: function (e, page) {
},
pageInit: function (e, page) {
console.log(this.$options);
this.$options.render(this.$options.template); **<<<<<<<<<<<<< here question**
},
pageBeforeIn: function (e, page) {
},
pageAfterIn: function (e, page) {
},
pageBeforeOut: function (e, page) {
},
pageAfterOut: function (e, page) {
},
pageBeforeRemove: function (e, page) {
},
},
}
There is no such API
1 Like
thank you for your reply.
but, i mean the render function, only work before luanch and excute once?
Yes, right, it works only once
okay, thank you sir, again.
if i want query/fetch some data from ajax, refresh or render html content, how can i do that?
this time, i use template7 compiled for this case.