锘??xml version="1.0" encoding="utf-8" standalone="yes"?>日韩一区自拍,亚洲午夜精品久久,97国产在线观看http://www.aygfsteel.com/kk-cockroach/zh-cnWed, 18 Jun 2025 06:50:28 GMTWed, 18 Jun 2025 06:50:28 GMT60浣跨敤Proxy妯℃嫙涓涓渶綆鍗曠殑鏁版嵁搴揅onnection姹犲拰PrepareStatment姹?/title><link>http://www.aygfsteel.com/kk-cockroach/archive/2015/04/13/424386.html</link><dc:creator>緙栫▼灝忓己</dc:creator><author>緙栫▼灝忓己</author><pubDate>Mon, 13 Apr 2015 15:33:00 GMT</pubDate><guid>http://www.aygfsteel.com/kk-cockroach/archive/2015/04/13/424386.html</guid><wfw:comment>http://www.aygfsteel.com/kk-cockroach/comments/424386.html</wfw:comment><comments>http://www.aygfsteel.com/kk-cockroach/archive/2015/04/13/424386.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/kk-cockroach/comments/commentRss/424386.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/kk-cockroach/services/trackbacks/424386.html</trackback:ping><description><![CDATA[浠婂ぉ鍦ㄧ湅澶忔鑰佸笀鐨勩婃繁鍏ユ祬鍑篐ibernate銆嬬殑鏃跺欙紝瑙夊緱鑰佸笀鍦ㄨ鏁版嵁搴撹繛鎺ユ睜鐨勬椂鍊欑殑渚嬪瓙寰堜笉閿欙紝浣跨敤Java鍔ㄦ佷唬鐞嗗疄鐜板Connection鎷︽埅浠庤岃搴旂敤鑰呬嬌鐢ㄨ繛鎺ユ睜鐨勬椂鍊欎笉浼?xì)鍥犱负鎵嬭幢灏咰onnection緇欏叧闂簡(jiǎn)錛屼唬鐮佸涓嬶細(xì)<br /><br />1. 榪炴帴姹犳帴鍙g被ConnectionPool<br /><div style="border: 1px solid #cccccc; padding: 4px 5px 4px 4px; width: 98%; word-break: break-all; background-color: #eeeeee;"><div><span style="font-size: 13px;">package com.snippnet.pool;</span></div><div><span style="font-size: 13px;"><br /></span></div><div><span style="font-size: 13px;">import java.sql.Connection;</span></div><div><span style="font-size: 13px;"><br /></span></div><div><span style="font-size: 13px;">public interface ConnectionPool</span></div><div><span style="font-size: 13px;">{</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>Connection getConnection();</span></div><div><span style="white-space: pre; font-size: 13px;"> </span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>boolean releaseConnection(Connection proxy, Connection connection);</span></div><div><span style="font-size: 13px;">}</span></div><div style="font-size: 13px;"></div></div>2. 榪炴帴姹犲疄鐜扮被DBConnectionPool<br /><div style="border: 1px solid #cccccc; padding: 4px 5px 4px 4px; width: 98%; word-break: break-all; background-color: #eeeeee;"><div><span style="font-size: 13px;">package com.snippnet.pool;</span></div><div><span style="font-size: 13px;"><br /></span></div><div><span style="font-size: 13px;">import java.sql.Connection;</span></div><div><span style="font-size: 13px;">import java.sql.DriverManager;</span></div><div><span style="font-size: 13px;">import java.sql.SQLException;</span></div><div><span style="font-size: 13px;">import java.util.ArrayList;</span></div><div><span style="font-size: 13px;">import java.util.List;</span></div><div><span style="font-size: 13px;"><br /></span></div><div><span style="font-size: 13px;">import org.apache.commons.collections.CollectionUtils;</span></div><div><span style="font-size: 13px;"><br /></span></div><div><span style="font-size: 13px;">public class DBConnectionPool implements ConnectionPool</span></div><div><span style="font-size: 13px;">{</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>private List<Connection> connections;</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>private int size; //鏈澶у閲?span style="white-space:pre"> </span></span></div><div><span style="white-space: pre; font-size: 13px;"> </span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>static {</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>try</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>{</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>Class.forName("com.mysql.jdbc.Driver");</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>} catch (ClassNotFoundException e)</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>{</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>e.printStackTrace();</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>}</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>}</span></div><div><span style="white-space: pre; font-size: 13px;"> </span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>public DBConnectionPool(int size)</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>{</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>this.size = size;</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>connections = new ArrayList<Connection>();</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>}</span></div><div><span style="white-space: pre; font-size: 13px;"> </span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>public synchronized Connection getConnection()</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>{</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>Connection connection = null;</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>if (CollectionUtils.isEmpty(connections))</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>{</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>try</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>{</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>connection = DriverManager.getConnection("jdbc:mysql://localhost:3306/jira", "root", "root");</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>ConnectionHandler handler = new ConnectionHandler(this, connection);</span></div><div><span style="font-size: 13px;">//<span style="white-space:pre"> </span>connection = (Connection)Proxy.newProxyInstance(this.getClass().getClassLoader(), connection.getClass().getInterfaces(), (InvocationHandler) handler);</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>connection = handler.bind(connection);</span></div><div><span style="font-size: 13px;">//<span style="white-space:pre"> </span>connections.add(connection);</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>} catch (SQLException e)</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>{</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>e.printStackTrace();</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>}</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>} else</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>{</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>connection = connections.get(connections.size() - 1);</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>connections.remove(connections.size() - 1);</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>}</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>return connection;</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>}</span></div><div><span style="white-space: pre; font-size: 13px;"> </span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>public synchronized boolean releaseConnection(Connection proxy, Connection connection)</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>{</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>boolean bool = false;</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>if (connections != null)</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>{</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>if (connections.size() < (this.size - 1))</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>{</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>connections.add(proxy);</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>bool = true;</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>} else</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>{</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>try</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>{</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>if (!connection.isClosed())</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>{</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>connection.close();</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>}</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>bool = true;</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>} catch (SQLException e)</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>{</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>bool = false;</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>}</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>}</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>}</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>return bool;</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>}</span></div><div><span style="white-space: pre; font-size: 13px;"> </span></div><div><span style="font-size: 13px;">}</span></div><div style="font-size: 13px;"></div></div>3. 鎷︽埅鍣ㄧ被ConnectionHandler<br /><div style="border: 1px solid #cccccc; padding: 4px 5px 4px 4px; width: 98%; word-break: break-all; background-color: #eeeeee;"><div><span style="font-size: 13px;">package com.snippnet.pool;</span></div><div><span style="font-size: 13px;"><br /></span></div><div><span style="font-size: 13px;">import java.lang.reflect.InvocationHandler;</span></div><div><span style="font-size: 13px;">import java.lang.reflect.Method;</span></div><div><span style="font-size: 13px;">import java.lang.reflect.Proxy;</span></div><div><span style="font-size: 13px;">import java.sql.Connection;</span></div><div><span style="font-size: 13px;">import java.sql.PreparedStatement;</span></div><div><span style="font-size: 13px;">import java.util.Collections;</span></div><div><span style="font-size: 13px;">import java.util.HashMap;</span></div><div><span style="font-size: 13px;">import java.util.Map;</span></div><div><span style="font-size: 13px;"><br /></span></div><div><span style="font-size: 13px;">public class ConnectionHandler implements InvocationHandler</span></div><div><span style="font-size: 13px;">{</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>private ConnectionPool pool;</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>private Connection connection;</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>private Map<String, PreparedStatement> pstPool;</span></div><div><span style="font-size: 13px;"><br /></span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>public ConnectionHandler(ConnectionPool pool, Connection connection)</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>{</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>this.pool = pool;</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>this.connection = connection;</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>this.pstPool = Collections.synchronizedMap(new HashMap<String, PreparedStatement>());</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>}</span></div><div><span style="font-size: 13px;"><br /></span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>public Connection bind(Connection connection)</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>{</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>this.connection = connection;</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>return (Connection) Proxy.newProxyInstance(connection.getClass().getClassLoader()</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>, new Class[]{Connection.class}</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>, this);</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>}</span></div><div><span style="font-size: 13px;"><br /></span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>@Override</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>public Object invoke(Object proxy, Method method, Object[] args)</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>throws Throwable</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>{</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>Object obj = null;</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>if ("close".equals(method.getName()))</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>{</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>// 鑻ヤ負(fù)close鏂規(guī)硶</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>obj = pool.releaseConnection((Connection)proxy, connection);</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>} </span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>else if ("prepareStatement".equals(method.getName()))</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>{</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>if (pstPool.containsKey((String)args[0]))</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>{</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>obj = pstPool.get((String)args[0]);</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>} else</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>{</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>String sql = (String)args[0];</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>obj = connection.prepareStatement(sql);</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>PrepareStatementHandler handler = new PrepareStatementHandler();</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>obj = handler.bind((PreparedStatement)obj);</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>pstPool.put(sql, (PreparedStatement)obj);</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>}<span style="white-space:pre"> </span></span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>}</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>else</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>{</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>// 涓嶄負(fù)close鏂規(guī)硶</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>obj = method.invoke(connection, args);</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>}</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>return obj;</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>}</span></div><div><span style="font-size: 13px;"><br /></span></div><div><span style="font-size: 13px;">}</span></div><div style="font-size: 13px;"></div></div>4. 嫻嬭瘯綾?br /><div style="border: 1px solid #cccccc; padding: 4px 5px 4px 4px; width: 98%; word-break: break-all; background-color: #eeeeee;"><div><span style="font-size: 13px;">package com.snippnet.pool;</span></div><div><span style="font-size: 13px;"><br /></span></div><div><span style="font-size: 13px;">import java.sql.Connection;</span></div><div><span style="font-size: 13px;">import java.sql.PreparedStatement;</span></div><div><span style="font-size: 13px;"><br /></span></div><div><span style="font-size: 13px;">public class DynamicConnectionPoolTest</span></div><div><span style="font-size: 13px;">{</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>public static void main(String[] args) throws Exception</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>{</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>ConnectionPool pool = new DBConnectionPool(2);</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>Connection con = pool.getConnection();</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>PreparedStatement pst = con.prepareStatement("SELECT id FROM cwd_group WHERE id = ?");</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>System.out.println(con);</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>System.out.println(pst);<span style="white-space:pre"> </span></span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>con.close();</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>Connection con1 = pool.getConnection();</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>System.out.println(con1);</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>PreparedStatement pst2 = con1.prepareStatement("SELECT id FROM cwd_group WHERE id = ?");</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>System.out.println(pst2);<span style="white-space:pre"> </span></span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>con.close();</span></div><div><span style="font-size: 13px;"><span style="white-space:pre"> </span>}</span></div><div><span style="font-size: 13px;">}</span></div><div style="font-size: 13px;"></div></div><br />浠g爜鍔熻兘寰堢畝鍗曪紝浣嗛夯闆铏藉皬浜旇剰淇卞叏銆?br />褰揅onnection瀹歸噺璁劇疆涓?鏃跺欙紝鎵ц緇撴灉錛?br /><div>com.mysql.jdbc.JDBC4Connection@6276e5</div><div>com.mysql.jdbc.JDBC4PreparedStatement@edeea8: SELECT id FROM cwd_group WHERE id = ** NOT SPECIFIED **</div><div>com.mysql.jdbc.JDBC4Connection@1d44ae9</div><div>com.mysql.jdbc.JDBC4PreparedStatement@823618: SELECT id FROM cwd_group WHERE id = ** NOT SPECIFIED **</div>浠庣粨鏋滃彲浠ヨ〃鏄庢病鏈変嬌鐢ㄧ紦瀛橈紝姣忔閮芥槸鍙栨渶鏂扮殑璁板綍<br /><br />褰揅onnection瀹歸噺璁劇疆涓?鏃跺欙紝鎵ц緇撴灉錛?br /><div>com.mysql.jdbc.JDBC4Connection@6276e5</div><div>com.mysql.jdbc.JDBC4PreparedStatement@edeea8: SELECT id FROM cwd_group WHERE id = ** NOT SPECIFIED **</div><div>com.mysql.jdbc.JDBC4Connection@6276e5</div><div>com.mysql.jdbc.JDBC4PreparedStatement@edeea8: SELECT id FROM cwd_group WHERE id = ** NOT SPECIFIED **</div><div>浠庣粨鏋滃彲浠ヨ〃鏄庝嬌鐢ㄤ簡(jiǎn)緙撳瓨錛岀浜屾浣跨敤鐨勬槸絎竴嬈$紦瀛樿褰?/div><img src ="http://www.aygfsteel.com/kk-cockroach/aggbug/424386.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/kk-cockroach/" target="_blank">緙栫▼灝忓己</a> 2015-04-13 23:33 <a href="http://www.aygfsteel.com/kk-cockroach/archive/2015/04/13/424386.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <a href="http://www.aygfsteel.com/" title="狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频">狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频</a> </div> </footer> 主站蜘蛛池模板: <a href="http://" target="_blank">汪清县</a>| <a href="http://" target="_blank">鸡泽县</a>| <a href="http://" target="_blank">陇南市</a>| <a href="http://" target="_blank">临海市</a>| <a href="http://" target="_blank">玉山县</a>| <a href="http://" target="_blank">枣庄市</a>| <a href="http://" target="_blank">朝阳区</a>| <a href="http://" target="_blank">泰兴市</a>| <a href="http://" target="_blank">钦州市</a>| <a href="http://" target="_blank">萍乡市</a>| <a href="http://" target="_blank">纳雍县</a>| <a href="http://" target="_blank">沾益县</a>| <a href="http://" target="_blank">藁城市</a>| <a href="http://" target="_blank">黎城县</a>| <a href="http://" target="_blank">中方县</a>| <a href="http://" target="_blank">惠东县</a>| <a href="http://" target="_blank">独山县</a>| <a href="http://" target="_blank">犍为县</a>| <a href="http://" target="_blank">大埔县</a>| <a href="http://" target="_blank">莫力</a>| <a href="http://" target="_blank">景宁</a>| <a href="http://" target="_blank">博罗县</a>| <a href="http://" target="_blank">德清县</a>| <a href="http://" target="_blank">宁夏</a>| <a href="http://" target="_blank">雷州市</a>| <a href="http://" target="_blank">金阳县</a>| <a href="http://" target="_blank">文登市</a>| <a href="http://" target="_blank">平度市</a>| <a href="http://" target="_blank">康保县</a>| <a href="http://" target="_blank">班戈县</a>| <a href="http://" target="_blank">桂平市</a>| <a href="http://" target="_blank">佳木斯市</a>| <a href="http://" target="_blank">南涧</a>| <a href="http://" target="_blank">商水县</a>| <a href="http://" target="_blank">喜德县</a>| <a href="http://" target="_blank">黔东</a>| <a href="http://" target="_blank">永安市</a>| <a href="http://" target="_blank">图木舒克市</a>| <a href="http://" target="_blank">偃师市</a>| <a href="http://" target="_blank">额敏县</a>| <a href="http://" target="_blank">天镇县</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>