无情 2016-10-28
http://www.cnblogs.com/itjeff/p/6007181.html
jQuery Ajax可以通过headers
或beforeSend
修改request的HTTP headers,例如:
$.ajax({ url: "./test.php", type: "POST", headers: { "Accept" : "text/plain; charset=utf-8", "Content-Type": "text/plain; charset=utf-8" }, /* beforeSend: function(jqXHR, settings) { jqXHR.setRequestHeader('Accept', 'text/plain; charset=utf-8'); jqXHR.setRequestHeader('Content-Type', 'text/plain; charset=utf-8'); }, */ data: {"user" : "min", "pass" : "he"}, error: function(jqXHR, textStatus, errorThrown) { //.... }, success: function(data, textStatus, jqXHR) { //.... } }
iviewer是一个具有缩放和图像旋转功能的图像查看小部件。在jQuery官网下载后,有很多文件。直接把文件夹解压拖到项目里。然后再html中引入主要的文件。-- iviewer-鼠标滚轮js -->