How to edit jQuery to realize dynamic loading of pages
This article mainly introduces how to edit jQuery to achieve dynamic loading page, the article introduces in great detail, has a certain reference value, interested friends must read it!
Edit to dynamically load the page
Function editFun () {var rows=$ ("# datagrid") .datagrid ("getChecked") Dialog ({width:500, height:200, href:'$ {rootPath} / edit.jsp, modal:true, title:' editing user', buttons: [{text: edit, handler:function () {$('# editForm'). Form ('submit', {url:'$ {rootPath} / user_edit.action') Success:function (data) {var obj = JQuery.parseJSON (data) If (obj.success) {$('# edit_dialog') .dialog ('close');} $.messager.show ({title:' prompt', msg:obj.msg}) }], onClose:function () {/ / must write $(this) .requests ('destroy');}, onOpen:function () {var data = rows [0];}, onLoad:function () {/ / initialize data, fill data var data = rows [0] $("# editForm"). Form ("load", data);}});} above is all the content of the article "how to edit jQuery to dynamically load pages". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!