更改跨度文字? [英] Change span text?
本文介绍了更改跨度文字?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
可能重复:
如何更改javascript中span元素的文本
好吧,我已经搜寻了很多答案,但是仍然找不到。我确实发现的方法行不通。
Well, I've searched a lot for the answer to this, but still I couldn't find it. What I did find didn't work.
基本上,我想使用JavaScript:在浏览器栏中,而不是通过Greasemonkey或其他工具,编辑范围文本。
What I'm trying to do is, basically, using JavaScript: At the browser's bar, not via Greasemonkey or something else, edit a span's text .
这是包含我要编辑的文本的范围:
This' the span that contains the text I want to edit:
<span id="serverTime">5:46:40</span>
时间只是随机的,不用注意,这就是我要编辑的
The time within is just random, don't pay attention to it, it's what I want to edit using javascript..
我是新手,所以是:\
I'm a newbie so yeah :\
推荐答案
document.getElementById("serverTime").innerHTML = ...;
这篇关于更改跨度文字?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文