为了将php变量从laravel传递到vue前端,我创建了一个Javascript类,我使用这个类的静态put方法向前端发送一个关联数组。
<?so I can access in vue components like this.//This helper method can be called more than one time in laravel's request-&
我想将一个对象从Laravel传递到Vue.js,然后在:v-for="option in this.options"中使用它。我能够将这个对象从我的Laravel刀片传递给Vue.js组件并在控制台中显示它,但是当我想在v-for中使用该对象时,我会得到以下错误:
TypeError: Cannot use