如何获取表格单元格的innar html [英] how to get innar html of table cell
本文介绍了如何获取表格单元格的innar html的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
1.我在运行时创建了一个asp表,并在cell [0]内创建了一个段落标签.现在如何用段落innertext填充数据表?
1.I have created an asp table at runtime and a paragraph tag inside cell[0].Now how to fill a datatable with the paragraph innertext?
dt.rows[0].cells[0]=table1.rows[0].cells[0].?
请在?"处写代码
2.在购物车应用程序中,我将客户数据存储在一个类中的一个数组中.现在,如果许多客户一次使用该站点,则意味着该数组会崩溃吗?实际上,我想知道该数组是否将针对所有客户端单独呈现,因为该数组位于服务器端. Cookies更好吗?
please write the code at "?"
2.In shopping cart apps I have stored client data in an array in a class.Now if many clients use the site at a time that means the array,will the site be crashed? Actually I want to know that whether the array will be rendered individually for all clients or not as the array is in server side. Is cookies better for this?
推荐答案
您正在寻找的是innerHTML
.尝试使用innerText
只会以眼泪结束.这是古老的Microsoft非标准元素.请参见此处 [ ^ ]以获得一些很好的参考.
彼得
What you are looking for isinnerHTML
. Trying to useinnerText
will only end in tears. It is an ancient Microsoft non-standard element. See here[^] for some good references.
Peter
这篇关于如何获取表格单元格的innar html的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文