开发者

url path [jQuery]

I use jQuery function:

$(document).ready(function(){
    $("#img").load("loader.php .allcon,",function(){
    $(".allcon").attr();
    });
});

so HTML code output:

<div class=开发者_C百科"1">
 <div class="2">
   <a href="/xxxx/xxxx.html">
 </div>
</div>

URL target output: "localhost/xxxx/xxxx.html"

There will be a way to make URL: http://website.com/xxxx/xxxx.html


More about .each().

$('a').each(function(i) {
    var _o = $(this).attr('href');
    $(this).attr('href', 'http://website.com/' + _o;
});
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜