jQuery Button Post指的是jQuery中的一個(gè)函數(shù),用于創(chuàng)建一個(gè)按鈕并在點(diǎn)擊時(shí)向服務(wù)器發(fā)送POST請(qǐng)求。該函數(shù)通過(guò)使用ajax()方法來(lái)實(shí)現(xiàn)這一功能。
jQuery.buttonPost = function(options) { var defaults = { url: "#", data: {}, target: "", method: "post", message: "Are you sure you want to perform this action?" }; options = $.extend(defaults, options); var form = $('