$(function () { autoFlashHeight(); $('#mode-form input').on('click', function () { postData('/sp/' + spid + '/payment/save', { type: 'mode-setting', mode_type: $(this).attr('mode-type'), checked: $(this).is(':checked') }, function (result) { toastr.success('已配置'); }) }); });