使用document.getElementById附加到变量 [英] appending to variable using document.getElementById
本文介绍了使用document.getElementById附加到变量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个JS功能,其中包括以下几行:
Hi,
I have a JS function which includes the following lines:
展开 | 选择 | Wrap | 行号
推荐答案
以下应该做你想要的:
The following should do what you''re looking for:
展开 | 选择 | Wrap | 行号
感谢您的回复;然而,似乎并没有像我想的那样处理变量。以下是我认为*我需要的更多内容。
如果可能,有人可以修改语法吗?我似乎无法让分配检查工作。
谢谢!
Thanks for the response; however, that doesn''t seem to handle the variables the way I''d like. Below is more along the lines of what I *think* I need.
If possible, could someone please fix the syntax? I can''t seem to get the assignment checks to work.
Thanks!
展开 | 选择 | Wrap | 行号
所以你想要table1或table10,而不是table1和table10?请注意,表格没有值。
So you want table1 OR table10, not table1 AND table10? Note that a table doesn''t have a value.
这篇关于使用document.getElementById附加到变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文