discuz ajaxpost 提交表单

<span id="savereturn"></span>
<form method="POST" id="saveform" action="url&savesubmit=yes&infloat=yes&handlekey=IDxx" onsubmit="ajaxpost('saveform', 'savereturn', '', '', $('savesubmit'));return false">
<input type="hidden" name="formhash" value="{FORMHASH}">
<button type="submit" name="savesubmit" id="savesubmit">添加</button>
</form>
<script>
function succeedhandle_IDxx(url, msg, values) {
    alert(values['name']);
}
</script>

返回数据

showmessage('提交成功', '123', ['id'=>'100', 'name'=>'哈哈哈']);