在調整asp.net MVC上傳程式的時候,  發現actionresult  return JSON時候,會出現下面的錯誤  SyntaxError: Unexpected token <     仔細查了一下,才發現  Retrun回來的JSON,不是單純的JSON資料而已  還被加上了<pre ......的資料      所以回傳回來後javascript接到就認為格式不正確。   主要原因出在ajaxfileupload.js 的一個判斷上     uploadHttpData: function(r, type) {         var data = !type;         data = type == "xml" || data ? r.responseXML : r.responseText;         // If the type is "script", eval it in global context         if (type == "script")             jQuery.globalEval(data);         // Get the JavaScript object, if JSON is used.         if (type == "json")             eval("data = " + data);         // evaluate scripts within html         if (type == "html")             jQuery("<div>").html(data).evalScripts();          return data;     }   只要將原本的        if (type == "json")             eval("data = " + data);  修改成   if (type == "json"){             if (data.inde...