$(function() {
$("#button1").click(function(){
$.ajax({
url: "warpAffine",
type: "GET",
dataType: "json",
success: function (data) {
$("img").attr("src", data.path);
$("img").attr("width", data.width);
$("img").attr("height", data.height);
console.log(data)}
})
})
})
$(function(){
$("#button2").click(function(){
$.ajax({
url: "thresholdFunc",
type: "GET",
dataType: "json",
success: function (data) {
$("img").attr("src", data.path);
$("img").attr("width", data.width);
$("img").attr("height", data.height);
console.log(data)}
})
})
})
ajax attr图片属性
猜你喜欢
转载自blog.csdn.net/oMoDao1/article/details/83110062
今日推荐
周排行