This article describes the busy demands over the past few days. This is mainly because the dvd library is switched. In this case, the content of the two databases should be displayed together. The main problem occurs when the two databases are displayed. In addition to complex business requirements, there are also practices in technical details. -- Load it here. We have the right to flip the page (in the same sense ).
Basic indexing ideas processing architecture JS scripts> innerhtml cannot be assigned a value under IE> numeric attributes are sorted by default> Delete and splice Basic Ideas
The basic idea is:
1) At the beginning, the two data sources will be added at the same time.
2) The next time you set the value, two time points (2001 and 2006) will be sent to the server, and the data segment will be taken for a long time. Then, reinitialize the big time point data.
3) if the server encounters two identical time points, it will perform the same initialization operation and then fetch data from the two data sources.
4) if the data is empty, set the corresponding time to 0000.
Processing Architecture
PHP loading for the first time (click to view the big picture)
JS initialization (click to view the big picture)-including JS rolling Loading
PHP post-load (click to view the big picture)
JS rolling Loading
The image has been initialized in Js.
JS script problems innerhtml cannot assign values in IE. It is used to accumulate values in this way. Unknown runtime error ".
$ ('Tableid'). innerhtml + = $ ("tableid"). innerhtml + value;
The solution is the final code-Tr and tbody have only readable attributes in IE and cannot be assigned a value.
Numeric attributes are sorted by default.
VaR opus = {'000000': 'result: 100', '000000': 'result: 100', '000000': 'result: 2009 '} For (VAR property in Opus) {console. log (property );}
Running result
Solution
After the delete and splice delete operations, although the elements are deleted, the deletion location still exists, but is changed to undefined. Therefore, use splice to delete elements. Someone suggested that the delete operation is more efficient than splice, so it is acceptable for my business to have less data volume splice. Final code
Summary
Finally, it was completed. The design was quite simple at the beginning, and the more conditions it was later on,CodeIs getting bigger and bigger.
Recommendation