62,073
社区成员
发帖
与我相关
我的任务
分享
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<script type="text/javascript">
function showRightContent(obj) {
alert(obj);
alert(obj.innerText);
}
</script>
</head>
<body>
<a href="#" onclick="showRightContent(this)">新闻</a>
</body>
</html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<script type="text/javascript">
function showRightContent(obj) {
//alert(obj);
//alert(obj.innerText);
alert($("#ll").text());
}
</script>
</head>
<body>
<a id="ll" href="#" onclick="showRightContent(this)">新闻</a>
</body>
</html>