sajax("***
null
showSaveResult);//執行成功之後執行的jS腳本
function sajax(url
{
$
type: "POST"
url: url
data: data
async: false
contentType: "application/json;charset=utf
dataType: "json"
success: successcallback
statusCode: {
}
});
};
cs代碼
[WebMethod(EnableSession = true)] //AJAX調用的必須是 這種方式聲明的函數 EnableSession
public static void DoSave()
{
byte[] byZhaoPian;
try
{
byZhaoPian = (byte[])(HttpContext
}
catch
{
byZhaoPian = new byte[
}
****************
}
選擇好照片之後
From:http://tw.wingwit.com/Article/program/Java/JSP/201311/20259.html