Jquery Easyui Design Note points

Source: Internet
Author: User

Recently used Easyui to do interface design, the use of the process encountered a variety of problems, such as Easyui ComboBox in the browser incompatibility issues, such as; here is a list of the problems encountered;

1, the Select tag in the Chrome drop-down list and display problems, the official demo is as follows

<select class= "Easyui-combobox" name= "state" style= "width:200px;" ><option value= "AL" >alabama</option><option value= "AK" >alaska</option><option value = "AZ" >arizona</option><option value= "AR" >Arkansas</option></select>

My own code of writing is as follows:

<select class= "Easyui-combobox" name= "state" style= "width:200px;" ><option value= "AL" >alabama</option><option value= "AK" >alaska</option><option value = "AZ" >arizona</option><option value= "AR" >Arkansas</option></select>

The difference is in each pair of <option></option> label whether the line, debugging for a long time finally found this phenomenon.

2.easyui DataGrid using paging custom processing, installation requires the default paging icon for the control to be converted to the first page previous next end This format will not be able to render the following code into the custom format:

$ ("#dg"). DataGrid ({onloadsuccess:function () {var pagertips = ["Home page", "previous page", "Next Page", "last"]; $ (". Pagination"). Find ("Td:eq (2), Td:eq (3), Td:eq (9), Td:eq (Ten)"). each (function (i) {$ (this). Find (". L-btn-text"). htm        L (Pagetips[i]);    }); }});

According to the code logic data loaded successfully after the custom code processing, browsing debugging found already loaded rendering, but the actual display effect is not appear, tangled ah, no matter how the adjustment is not appear, online tips are so written, The last attempt is because the framework loads the data too quickly causing the page to be future and render this effect. Result attempting to delay loading code

$ ("#dg"). DataGrid ({onloadsuccess:function () {setTimeout (function () {var pagertips = ["Home page", "previous page", "Next Page", "last"]; $ (". Pagination"). Find ("Td:eq (2), Td:eq (3), Td:eq (9), Td:eq (Ten)"). each (function (i) {$ (this). Find (". L-btn-text"        ). HTML (pagetips[i]);    }); }});},50);


This article is from the "Summary of problems encountered" blog, please be sure to keep this source http://4184212.blog.51cto.com/4174212/1545190

Jquery Easyui Design Note points

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.