<script type="text/javascript">
$("#btnSave").click(function () {
var name = $("#funcName").val();
var parent = $("#funcParent").val();
if (name.length <= 0) {
alert("请输入功能名称");
} else {
$.post('/Sys/AddFunc.aspx', { action: 'add', funcName: name, funcParent: parent }, function (data) {
if (data.reCode > 0) {
window.location.href = '/Sys/FuncList.aspx';
}
else {
alertMsg(data.msg);
}
}, 'json');
}
});
</script>
欢迎光临 苏飞论坛 (http://www.sufeinet.com/) | Powered by Discuz! X3.4 |