"#"在js中代表什么
11个回答
展开全部
jquery选择器的一种形式,匹配任意html中id的对象
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
<html>
<head>
<title>通过JavaScript操作XML文档分页显示</title>
<style>
td{ font-size:12px;}
a:hover {
font-size: 9pt; color: #FF0000;
}
a {
font-size: 9pt; text-decoration: none; color: #3C404D;
}
</style>
<script type="text/javascript">
function moveNext(){
x=d.recordset
if (x.absoluteposition < x.recordcount){
x.movenext()
}
}
function movePrevious(){
x=d.recordset
if (x.absoluteposition > 1){
x.moveprevious()
}
}
</script>
</head>
<body>
<table width="766" height="454" border="0" align="center" cellpadding="0" cellspacing="0" background="images/bg.jpg">
<tr>
<td width="65" height="220" valign="top"> </td>
<td width="648" valign="top"> </td>
<td width="53" valign="top"> </td>
</tr>
<tr>
<td height="109" valign="top"> </td>
<td valign="top">
<xml id="d" src="index.xml" async="false"></xml>
<table width="90%" border="1" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF"
bordercolordark="#FFFFFF" bordercolorlight="#999999">
<tr>
<td height="25" colspan="2">评论员ID号:<span datasrc="#d" datafld="id"></span></td>
<td width="35%">作者:<span datasrc="#d" datafld="author"></span></td>
<td width="43%">发表日期:<span datasrc="#d" datafld="datetime"></span></td>
</tr>
<tr>
<td height="25" colspan="4">评论主题:<span datasrc="#d" datafld="topic"></span></td>
</tr>
<tr>
<td width="11%" height="25">评论内容</td>
<td height="25" colspan="3"><span datasrc="#d" datafld="content"></span></td>
</tr>
</table>
</td>
<td valign="top"> </td>
</tr>
<tr>
<td height="33" valign="top"> </td>
<td align="right" valign="bottom"><a href="#" onClick="movePrevious()">上一篇</a> <a href="#" onClick="moveNext()">下一篇</a></td>
<td valign="top"> </td>
</tr>
<tr>
<td valign="top"> </td>
<td valign="top"> </td>
<td valign="top"> </td>
</tr>
</table>
</body>
</html>
<head>
<title>通过JavaScript操作XML文档分页显示</title>
<style>
td{ font-size:12px;}
a:hover {
font-size: 9pt; color: #FF0000;
}
a {
font-size: 9pt; text-decoration: none; color: #3C404D;
}
</style>
<script type="text/javascript">
function moveNext(){
x=d.recordset
if (x.absoluteposition < x.recordcount){
x.movenext()
}
}
function movePrevious(){
x=d.recordset
if (x.absoluteposition > 1){
x.moveprevious()
}
}
</script>
</head>
<body>
<table width="766" height="454" border="0" align="center" cellpadding="0" cellspacing="0" background="images/bg.jpg">
<tr>
<td width="65" height="220" valign="top"> </td>
<td width="648" valign="top"> </td>
<td width="53" valign="top"> </td>
</tr>
<tr>
<td height="109" valign="top"> </td>
<td valign="top">
<xml id="d" src="index.xml" async="false"></xml>
<table width="90%" border="1" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF"
bordercolordark="#FFFFFF" bordercolorlight="#999999">
<tr>
<td height="25" colspan="2">评论员ID号:<span datasrc="#d" datafld="id"></span></td>
<td width="35%">作者:<span datasrc="#d" datafld="author"></span></td>
<td width="43%">发表日期:<span datasrc="#d" datafld="datetime"></span></td>
</tr>
<tr>
<td height="25" colspan="4">评论主题:<span datasrc="#d" datafld="topic"></span></td>
</tr>
<tr>
<td width="11%" height="25">评论内容</td>
<td height="25" colspan="3"><span datasrc="#d" datafld="content"></span></td>
</tr>
</table>
</td>
<td valign="top"> </td>
</tr>
<tr>
<td height="33" valign="top"> </td>
<td align="right" valign="bottom"><a href="#" onClick="movePrevious()">上一篇</a> <a href="#" onClick="moveNext()">下一篇</a></td>
<td valign="top"> </td>
</tr>
<tr>
<td valign="top"> </td>
<td valign="top"> </td>
<td valign="top"> </td>
</tr>
</table>
</body>
</html>
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
可以代表url中的hash也可以用于h5的querySelector选择器的id标识等等,具体问题具体分析
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
你在哪看到的,代码粘出来看一下呗
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询