Get the App
SLTechnology News&Howtos  ›  Development  › 

How to edit jQuery to realize dynamic loading of pages

Shulou Source: shulou.com Published: 2022-06-01 04:51:52 09月22日 Update

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!

Tags: Dynamic pages content data articles value interests guys buddies more users knowledge industry information information channels channels references help tips Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Linux Huawei macOS Shulou Information Shulou Tech Info