웹 메서드에서 Json 객체를 가져 오기 위해 AJAX를 사용했습니다. 대부분의 요소는 "Content"요소를 제외하고는 잘 디코딩 될 수 있습니다.Jcode에서 Decode Json 객체가 잘 작동하지 않습니다.
다음은 Json 개체입니다.
{"d":"\u003cNewDataSet\u003e\r\n
\u003cId\u003e13410\u003c/Id\u003e\r\n
\u003cContextId\u003ee055817c-9233-12d1-a559-ff03465875af\u003c/ContextId\u003e\r\n
\u003cTimestamp\u003e2014-09-19T21:40:02.97-07:00\u003c/Timestamp\u003e\r\n
**\u003cContent\u003e\u0026lt;SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\"\u0026gt;\u0026lt;SOAP-ENV:Header\u0026gt;\u0026lt;/SOAP-ENV:Envelope\u0026gt;\u003c/Content\u003e\r\n**
\u003c/NewDataSet\u003e"}
내가 $().html(Id)
또는 $().html(ContextId)
또는 $().html(Timestamp)
을 사용, 그것은 웹 페이지에서 정확한 데이터의 내용을 보여줍니다; 난 그냥 JQuery와의 alert(Content)
기능을 사용하는 경우 그러나, $().html(Content)
를 사용하여 아무것도 ....
을 표시하지 않습니다, 그것은
같은 올바른 형식을 표시 할 수 있습니다< SOAP=ENV:Envelop xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelop/......>......< /SOAP-ENV:Envelope >
알아낼 이유뿐만 아니라 수 "콘텐츠"요소가 다른 요소처럼 올바르게 작동하지 않았습니다.
비누 봉투를 html로 만들려고하므로 작동하지 않습니다. – BumbleB2na