Development Documentation-switch the dvd library

Source: Internet
Author: User
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

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.