//用on绑定
$('body').on('click', '.AlloyClipConfim',function(){
alert();
$.ajax({
url: "/Home/updateHead",
cache:false,
type: "POST",
//async: false,
//xhrFields: { withCredentials: true },
dataType: "text",
data: {
"imgbase": bs4
},
success: function (data) {
console.log(data);
if (data.data == "Success") {
alert("Success");
} else {
alert("Failed");
}
},
error: function (data) {
alert("Failed");
}
});
});