我正在提交一份工作申请表,并具备以下技能
C#
在我的休息API中进行了逃逸。所以我对这些技能进行编码并发送到后端。
"skills":encodeURIComponent(skills)
现在当我恢复我正在做的技能时
decodeURIComponent
为了我
skills
$scope.skills = decodeURIComponent(skills);
但这不适用于数据数组,当我想获取作业列表时,数据将进入数组,我的数组有将近15个键值,这些键值将在表中以某种方式使用。编写一个新的数组,并将每个值再次推送到数组中,将解码的技能推送到一个大过程中。
直接解码视图中的值的任何解决方案,即HTML
我试过了
{{decodeURIComponent(item.skills) }}
但没有运气。
样本数据:
{
"json": {
"response": {
"statusmessage": "Success",
"count": 59,
"data": [
{
"employerId": 2,
"employerEmail": "sumit@infosoftjoin.in",
"employerName": "SumitKumar",
"companyName": "Infosoftjoin%20pvt%20ltd.",
"jobId": 142,
"jobTitle": "Test%20case%201",
"jobDescription": "<p>ahdu%29%28@*%29*W%29%28*%29E%26%3D--%3D</p>",
"link": "http://www.infosoftjoin.in",
"numberOfPositions": 5,
"createdTime": "18-May-2018",
"lastUpdatedTime": "18-May-2018",
"consumedCredits": 44,
"location": {
"city": "North And Middle Andaman",
"state": "Andaman and Nicobar Islands",
"country": "India"
},
"skills": [
"C%23.NET"
],
"approved": 1,
"status": "Approved"
},
{
"employerId": 2,
"employerEmail": "sumit@infosoftjoin.in",
"employerName": "SumitKumar",
"companyName": "Infosoftjoin%20pvt%20ltd.",
"jobId": 130,
"jobTitle": "New%20job",
"jobDescription": "hryuyurfkituo8",
"link": "http://www.infosoftjoin.in",
"numberOfPositions": 5,
"createdTime": "16-May-2018",
"lastUpdatedTime": "16-May-2018",
"consumedCredits": 93,
"location": {
"city": "Nicobar",
"state": "Andaman and Nicobar Islands",
"country": "India"
},
"skills": [
"APACHE TOMCAT"
],
"approved": 1,
"status": "Approved"
}
]
}
}
}