我以此方式配置无脂肪框架所获得的方式 但是当我想在视图js中恢复时,我看到了元素,但带有不必要的html字符
我尝试直接设置从html中获取的内容,得到json但字符错误
$data = $Users->ReadUserData($_GET['action']);
var_dump($f3->set("users", $data));
}
getDataUsers: function() {
axios.get("http://localhost/?action=read")
.then(function(response) {
//console.log( "{{ @message }}" );
if (response.data.error) {
app.errorM = response.data.message;
} else {
//app.users = response.data.users;
app.users = "{{ @users }}";
console.log(app.users);
}
});
}
}
app.users的结果:
[{"username":"toto","email":"toto@gmail.com","mobile":"0676565443"},{"username":"jojo","email":"jojo@gmail.com","mobile":"0678654534"},{"username":"jojo","email":"jojo@gmail.com","mobile":"0678654534"}]
但在"
的地方,我有quot