|
有一个网站的页面,有些页面是留了两个客服的QQ号码,例如像下:- <dl ><dt>在线客服:</dt><dd class="qq"><a target=blank href="http://wpa.qq.com/msgrd?V=1&Uin=1049838866><img id="qq_1" SRC="http://wpa.qq.com/pa?p=1:1049838866:10"></a><a target=blank href="http://wpa.qq.com/msgrd?V=1&Uin=1016855511><img id="qq_1" SRC="http://wpa.qq.com/pa?p=1:1016855511:10"></a></dd></dl>
复制代码 而有些页面,又只有一个客服的QQ号码,如下:- <dl ><dt>在线联系:</dt><dd class="qq"><a target=blank href="http://wpa.qq.com/msgrd?V=1&Uin=630636288><img id="qq_1" SRC="http://wpa.qq.com/pa?p=1:630636288:10"></a></dd></dl>
复制代码 我是想如果页面只有一个QQ号码时,就直接把这个QQ号码采集下来,
如果页面有两个QQ号码时,就是符号把这两个QQ号码隔开,再采集到数据库,
请问这个标签要怎么写呢?
谢谢啦 |
|