Easyui 2 requests from the DataGrid dynamically bound URL
Source: Internet
Author: User
This morning, the architect e-Mail said to let everyone use the Easyui datagrid,html code in the class= "Easyui-datagrid" removed, to avoid the background of the two requests, remember before also encountered this problem, when referring to a blog post (HTTP/ www.cnblogs.com/weeksun23/archive/2013/04/13/3019478.html), with the SetTimeout method to solve the problem, but then did not search for other information, so today decided to understand again, Then on the internet to find a lot of information, said is class= "Easyui-datagrid" this caused, and then there is another page said, do not class= "Easyui-datagrid" This way will also lead to two background requests, we also do not use the class = "Easyui-datagrid", directly in the jquery implementation, but there are two background requests, and then carefully contrast, the original is our dynamic binding URL caused, in a function with $ ("#TableId"). DataGrid ({}); Mr. The DataGrid, which does not specify a URL, and then implements the URL binding in another function, requests the data, so it will be two times the background request.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.