A small problem in the development process. Mark it as a record.

Source: Internet
Author: User

I wrote something two days ago and used some jquery stuff. The function is to obtain the text on a fixed column in the row based on a row in the double-click table to obtain the row number, then it is uploaded back to the selected text box in the parent form. At first, I passed the row index test and found that I could locate the index, so I didn't think much about it. However, from Monday to Shanxi, I called my colleagues on the customer's system to say that something went wrong. The passed value is not unique. After I told my colleagues about my ideas, he checked them again.CodeThe problem is found on the passed row index. Due to the limited data volume during local testing, this problem cannot be exposed. The problem is: when the data volume exceeds 10 rows, this problem will be exposed. For example, if the row passed is 2 and the column index is 3, normally, it is the text of the cell <span> in the third column of the second row. However, when 23 rows are passed, it will not work and it will be repeated. At this time, the value is not unique. Therefore, this is a matter of detail. The solution is to separate row and column index with underscores. This ensures data uniqueness. This is the details. I think it is necessary to mark it.

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.