vuejs和后台交互问题:比如下面这个示例,
-
{{ todo.text }}
new Vue({
el: '#app',
data: {
todos: [
{ text: 'Learn JavaScript' },
{ text: 'Learn Vue.js' },
{ text: 'Build Something Awesome' }
]
}
})
如果data中的todos是从后台取出来的,应该怎么替换,语法怎么写呢?(后台用的laravel)
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
vue-resource,语法自己看demo
前后分离异步数据