Using JS to dynamically add data to the table in H5 (Simple implementation)

Source: Internet
Author: User

Passing values to a table
function Settextareavalue (items,pp) {
Console.log ("Enter function items==" +items);
var TB = document.getElementById ("addtable");
var td1 = tb.rows[1].cells[1];
var td2 = tb.rows[1].cells[2];
var td3 = tb.rows[1].cells[3];
var td4 = tb.rows[1].cells[4];
var td5 = tb.rows[1].cells[5];
var td6 = tb.rows[1].cells[6];

td1.innerhtml = items.province;
td2.innerhtml = items.city;
td3.innerhtml = items.district;
td4.innerhtml = Items.street+items.streetnumber;
td5.innerhtml = PP.LNG;
td6.innerhtml = Pp.lat;

}

Using JS to dynamically add data to the table in H5 (Simple implementation)

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.