document.location==document.URL 指定文档路径是反对使用的。建议用window.location.href
解决方案 »
- tr 加事件
- 在不知道Object属性名字的时候怎么调用?
- 问一个jquery写的相册问题
- 请教:如何自动加载数据给原始表单
- 调用函数时究竟什么时候要括号()?
- 作为我来说是难题,大家帮我想想办法!高分相送
- 请问:我在js中写的一段程序,中有关于显示图片的,但是我用高和宽的设置无效!!
- 有关WEB页的关闭问题!很简单。。。
- 我有个javascript显示中文,在IE中显示正常,而在Netscape中就显示成为乱麻了,请问这是什么原因呀?还有好像netscape对 字符并不认可
- 在javascript中如何往<div>中写入html语言?
- "[object]"是什么意思?
- 如何让下拉菜单的选择自动转移到相应的页面.
{
var url = "search.html?${queryStr}&" + menuName + "=" + menuValue;
document.location = url;
}
不好意思,继续问问,这个函数是不是返回url,还是什么意思,
<div class="filterMenuItem">
<a class="filterMenuLink" href="javascript:doFilter('$menuName', '$option')">$velocityUtil.ucAllFirst($option)</a>
/div>
function doFilter(menuName, menuValue)
{
var url = "search.html?${queryStr}&" + menuName + "=" + menuValue;
document.location = url;
}
<div class="filterMenuItem">
<a class="filterMenuLink" href="javascript:doFilter('$menuName', '$option')">$velocityUtil.ucAllFirst($option)</a>
/div>
和
(2)
<div class="dropdown_menu_entry">
<a class="drop_menu_link" href="search.html?cid=$cat.getCategoryId()">$cat.getDescription()</a>
</div>
得区别是什么?
实际上我要解决得bug就是他们之间得区别,
bug如下:
Steps:
1.Go to destination lighting and then Lamps & Shades > Table and Desk.
2.User should be able to click anywhere in the drop down menu while selecting an option (Finish,Use) to sort the products and not just the text.
意思是:在product listing page上,必须要将鼠标移到下拉字体当中,才能点击,(1)得实现,
而在主页面,就是鼠标移到菜单上,不在下拉菜单得字体上也能点击(2)得实现,