标签:style http io ar sp on div art bs
原代码
<li class="li2" style="display:inline">
<a id="one4_44" href="index-htmx-m-house-q-sale-act--options-opt.areatype.44.html">测试</a>
<div style="display: block;" class="xiala_list">
<a href="index-htmx-m-house-q-sale-act--options-opt.areatype.44.opt.platetype.194.html">测试1</a>
</div>
</li>
$("li.li2 a[id^=‘one4_‘]").mouseover(function(){
$(‘li.li2 div.xiala_list a‘).each(function(){
$(this).attr(‘href‘, $(this).attr(‘href‘).replace(‘sale‘,‘hire‘));
});
});
替换之后就是
<li class="li2" style="display:inline">
<a id="one4_44" href="index-htmx-m-house-q-hire-act--options-opt.areatype.44.html">测试</a>
<div style="display: block;" class="xiala_list">
<a href="index-htmx-m-house-q-hire-act--options-opt.areatype.44.opt.platetype.194.html">测试1</a>
</div>
</li>
反之一样
标签:style http io ar sp on div art bs
原文地址:http://www.cnblogs.com/helinfeng/p/4140731.html