Recently, try to develop a simple online report with the following basic workflow:
index.html page has a DIV element, id= "div_result", the default does not have any content;
The index.html page has a jquery code that uses $.get () to send a request to /test.php , returning the contents of a table's HTML code, using $ ("#div_ Result"). The HTML () output is in the div element of the current page.
The returned HTML code (table) contains the jquery code, which is the function of the table style (interlaced color, select row highlighting).
Problems that arise:
In Chrome : Quickly move the mouse over the table and select the highlight effect in the row to respond very quickly.
In all IE browsers: The above effects appear with noticeable lag, regardless of the number of table rows.
Stop $ ("Div_result"). html (), manually add a static table below the div element in index.html and populate the test data, Chrome and IE respond very quickly with the same jquery code for table effects.
The main code is as follows:
Reply content:
Recently, try to develop a simple online report with the following basic workflow:
index.html page has a DIV element, id= "div_result", the default does not have any content;
The index.html page has a jquery code that uses $.get () to send a request to /test.php , returning the contents of a table's HTML code, using $ ("#div_ Result"). The HTML () output is in the div element of the current page.
The returned HTML code (table) contains the jquery code, which is the function of the table style (interlaced color, select row highlighting).
Problems that arise:
In Chrome : Quickly move the mouse over the table and select the highlight effect in the row to respond very quickly.
In all IE browsers: The above effects appear with noticeable lag, regardless of the number of table rows.
Stop $ ("Div_result"). html (), manually add a static table below the div element in index.html and populate the test data, Chrome and IE respond very quickly with the same jquery code for table effects.
The main code is as follows: