<#include "../_inc/_layout.html"/> <#macro script> function doSubmit(){ $("#form").ajaxSubmit({ type : "post", dataType : "json", success : function(data) { if(data.errorCode == 0){ location.reload(); }else{ toastr.error(data.message,'操作失败'); } }, error : function() { alert("信息提交错误"); } }); } $(document).ready(function(){ $("#password").show(); }); <@layout active_id=p child_active_id=c> <#include include/>