我在我的本地路径一个JSON文件sendmail.json它包含这样反序列化JSON文件数据
{
"from": {
"datatype": "String",
"required": false
},
"subject": {
"datatype": "String",
"required": false
},
"text": {
"datatype": "String",
"required": false
},
"to": {
"datatype": "String",
"required": false
}
数据}
我想反序列化MVC这个数据,我想将这些数据传递给.js角度控制器请提供方法。
你可能想分享你已经到目前为止已经试过。同时检查您的语法和标点符号。 –