我如下这个js代码在Google chrome,IE9,firefox都没问题,可是在IE8下就取不到信息了.
- JScript code
<script type="text/javascript"> function GetEQIDList(ModuleID) { $.ajax({ type:"POST", contentType:"application/json", url:"/FDCService/FDCService1.asmx/GetToolIDs", data:"{moduleID:'"+ModuleID+"'}", datatype:'json', success:function(result){ try{ $('#toolList').empty(); $("#toolList").append("<option value='" + "All" + "'>" + "All" + "</option>"); $(result.d).each(function() { $("#toolList").append("<option selected='selected' value='" + this + "'>" + this + "</option>"); }); }catch(e){ alert(e); } }, error: function(result, status){ if(status=='error'){ alert(result); } } }); }</script>
XML源码如下,我传入ModuleID参数返回List<string>类型数据
- XML code
<?xml version="1.0" encoding="UTF-8"?>-<ArrayOfString xmlns="http://tempuri.org/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <string>ACCCUA01</string> <string>ACCCUA02</string> <string>ACCCWA01</string> <string>ACCOXA01</string> <string>ACCSTA01</string> </ArrayOfString>
------解决方案--------------------
有沒有哪位解決一下啊?