您的位置:首页 > 运维架构 > Apache

Apache 欢迎页面也可访问到,文件目录下的其他文件却访问不到

2016-03-02 14:07 627 查看
Notice the difference in the descriptions:

.wrap(): Wrap an HTML structure around each element in the set of matched elements.
.wrapAll(): Wrap an HTML structure around all elements in the set of matched elements.
.wrap() wraps every element individually, but 
.wrapAll()
wraps all of them as a group.

 For example:

<div class="foo"></div>
<div class="foo"></div>
<div class="foo"></div>

 With
$('.foo').wrap('<div class="bar" />');
, this happens:

<div class="bar"><div class="foo"></div></div>
<div class="bar"><div class="foo"></div></div>
<div class="bar"><div class="foo"></div></div>

 But with
$('.foo').wrapAll('<div class="bar" />');
, this happens:

<div class="bar">
<div class="foo"></div> <div class="foo"></div> <div class="foo"></div>
</div>

 from :http://stackoverflow.com/questions/11946379/difference-between-jquery-wrap-and-wrapall

 learn wrapInner:  http://api.jquery.com/wrapInner/

 

 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: