<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>http://www.jackxiang.com/index.php</link> 
<description><![CDATA[赢在IT，Playin' with IT,Focus on Killer Application,Marketing Meets Technology.]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></copyright>
<item>
<link>http://www.jackxiang.com/post//</link>
<title><![CDATA[Jquery 模糊匹配ID]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[Php/Js/Shell/Go]]></category>
<pubDate>Mon, 14 Jan 2013 05:07:24 +0000</pubDate> 
<guid>http://www.jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	[属性名称] 匹配包含给定属性的元素<br/>[att=value] 匹配包含给定属性的元素 (大小写区分)<br/>[att*=value] 模糊匹配<br/>[att!=value] 不能是这个值<br/>[att$=value] 结尾是这个值<br/>[att^=value] 开头是这个值<br/>[att1][att2][att3]... 匹配多个属性条件中的一个<br/><br/>===========================================下面举例================================<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;UL id=comparePro&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li id=compare_prod_list_001&gt;信用卡贷款活动产品1-中国建设银行&lt;/li&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li id=compare_prod_list_002&gt;信用卡贷款活动产品2-中国建设银行&lt;/li&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li id=compare_prod_list_003&gt;信用卡贷款活动产品3-中国建设银行&lt;/li&gt;<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li id=other&gt;其他&lt;/li&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/UL&gt;<br/><br/>要取到所有 id以compare_prod_list_开头的&lt;li&gt;&nbsp;&nbsp; ：&nbsp;&nbsp;var list=$(&#039;li[id^=compare_prod_list_]&#039;);<br/><br/>来自：http://cyxu2004.blog.163.com/blog/static/457687182011112851043/<br/><br/>&lt;tr align=&quot;center&quot; id=&quot;_tr_809401de-0f4b-11e1-b237-001e0bdc11a2&quot; class=&quot;odd&quot;&gt;<br/>这样的没有时刷新页面的判断（后面的Id值是每一个不一样的）：<br/><textarea name="code" class="JS" rows="15" cols="100">
var removeListsLen=$(&#039;tr[id^=_tr_]&#039;).length; //有多少个这样的模糊匹配
console.log(removeListsLen);
if(removeListsLen == 0)&#123;//如果为空则强制刷新当前的Url链接地址&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;var url = &quot;url contents...&quot;;
&nbsp;&nbsp;location.replace(parent.location.href);
&#125;

</textarea>
]]>
</description>
</item><item>
<link>http://www.jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] Jquery 模糊匹配ID]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://www.jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>