惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

G
Google Developers Blog
F
Fortinet All Blogs
Microsoft Azure Blog
Microsoft Azure Blog
腾讯CDC
Vercel News
Vercel News
Recent Announcements
Recent Announcements
博客园 - Franky
小众软件
小众软件
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
The Cloudflare Blog
宝玉的分享
宝玉的分享
I
InfoQ
博客园 - 聂微东
Jina AI
Jina AI
J
Java Code Geeks
V
V2EX
U
Unit 42
Stack Overflow Blog
Stack Overflow Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
阮一峰的网络日志
阮一峰的网络日志
L
LangChain Blog
T
The Blog of Author Tim Ferriss
量子位

博客园 - Snapping

PLSQL-Developer beautifier xml skill note Delete temp files to get more disk space Oracle: where to add tns key sql server process query Default permissions and user rights for IIS 6.0 C#获取项目程序路径的方法 Get the source code via a url __doPostBack ASP.NET 2.0 中的UrlRewrite var container = $get('divA'); var links = container.getElementsByTagName("A"); static variables and web.config file Register dll for asp application The report server cannot decrypt the symmetric key install report server 泛型 List 和 Dictionary 类的互相转换 短歌行 CSS: 在半透明的层上放一个不透明层 技巧和诀窍;在VS 2005里优化ASP.NET 2.0Web项目的Build性能
设置控件text(兼容浏览器)
Snapping · 2011-07-20 · via 博客园 - Snapping

编辑器加载中...

/// help set the text of the element, based on the browser.
function setTextofElement(textControl, textValue) {
    // innerText only supported in IE
    if (document.body.innerText) {
        textControl.innerText = textValue;
    }
    else // other browsers use textContent
    {
        textControl.textContent = textValue;
    }
}