获取<div id="jok" title="V"></div> JS 获取div id =jok中 title的值求解 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 document.getElementById("jok").getAttribute("title") L@_@K<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> <title> new document </title> <meta name="generator" content="editplus" /> <meta name="author" content="[email protected]" /> <meta name="keywords" content="" /> <meta name="description" content="" /></head><body><div id="jok" title="V" style="width:100px;height:20px;background-color: black;"></div><script type="text/javascript"><!-- var myJok = document.getElementById("jok"); alert(myJok.title); myJok.title = "good job";//--></script></body></html> Web 开发常用手册DHTML 参考手册http://download.csdn.net/source/308913JScript 语言参考http://download.csdn.net/source/308916CCS 样式表中文手册http://download.csdn.net/source/304124 看3楼的document.getElementById("jok").title; get1、document.getElementById("jok").getAttribute("title")2、document.getElementById("jok").titleset1、document.getElementById("jok").setAttribute("title", "jok div")2、document.getElementById("jok").title = "div jok";2种方法都可行 Extjs表格使用Ext.util.Format.numberRenderer后小数点变成逗号如何解决? 这个js文件哪错了啊?请各位路过的高手指点! jquery1.7速查手册(中文)下载 我知道我这写法不标,敢问有没有简洁方法 JS 输出文本或CSS 唉,我又遇到问题了,还是JS,有个问题还请各位帮忙,很急的, 一个FLASH中的代码,帮我看看。 急!如何用脚本设置浏览器的安全级别?急! 怎样加快显示? 请看如下代码,为什么会浏览器错误不能显示 为什么ExtJs职位一列一直显示在loading状态? ie6 用thickbox 拖动iframe滚动条时 ie6出现重影。
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title> new document </title>
<meta name="generator" content="editplus" />
<meta name="author" content="[email protected]" />
<meta name="keywords" content="" />
<meta name="description" content="" />
</head>
<body>
<div id="jok" title="V" style="width:100px;height:20px;background-color: black;"></div>
<script type="text/javascript">
<!--
var myJok = document.getElementById("jok");
alert(myJok.title);
myJok.title = "good job";
//-->
</script>
</body>
</html>
http://download.csdn.net/source/308913JScript 语言参考
http://download.csdn.net/source/308916CCS 样式表中文手册
http://download.csdn.net/source/304124
document.getElementById("jok").title;
1、document.getElementById("jok").getAttribute("title")
2、document.getElementById("jok").titleset
1、document.getElementById("jok").setAttribute("title", "jok div")
2、document.getElementById("jok").title = "div jok";
2种方法都可行