ajax
data中传递参数,直接传对象,会放在form data中,不管设置的contentType是不是json,放json字符串才会放到request payload
var tempParams = {aaa: 888}
$.ajax({
url: '/url'
type: "POST",
dataType: "json",
async: false,
data: JSON.stringify(tempOptions),
success: function(data) {
//
}
});
jqueryUI
拖动
$('.modal-content').draggable();
$(".modal-header").draggable();
$('.modal-content').draggable({ handle: ".modal-header" })