我想array('Cache-Control'=>'no-cache, no-store, max-age=0, must-revalidate','Pragma'=>'no-cache','Expires'=>'Fri, 01 Jan 1990 00:00:00 GMT');为我的所有视图设置标题,目前我在返回视图时在所有控制器中执行此操作,例如
$headers=array('Cache-Control'=>'no-cache, no-store, max-age=0, must-revalidate','Pragma'=>'no-cache','Expires'=>'Fri, 01 Jan 1990 00:00:00 GMT');
Redirect::to('/',301,$headers);`
Run Code Online (Sandbox Code Playgroud)
因此,不是为每个路径写这个,而是可以在全局范围内完成,以便为每个视图设置标头.
我尝试通过创建过滤后设置标题,但没有让它工作.
谁能告诉我在哪里可以为我的所有视图设置标题?
更新 我的视图文件元内容之一
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>
Run Code Online (Sandbox Code Playgroud)
现在当我使用Redirect::to('/',301,$headers)
firebug中的标题时
Cache-Control max-age=0, must-revalidate, no-cache, no-store, private
Connection Keep-Alive
Content-Type text/html; charset=UTF-8
Date Tue, 09 Jul 2013 14:52:08 GMT
Expires Fri, 01 Jan 1990 00:00:00 GMT
Run Code Online (Sandbox Code Playgroud)
当我使用时 Redirect::to('/');
萤火虫的标题是
Cache-Control no-cache
Connection Keep-Alive
Content-Type text/html; charset=UTF-8
Date Tue, 09 Jul 2013 14:52:08 GMT
Run Code Online (Sandbox Code Playgroud) 我想要实现的是这个动画

链接到动画是Material Design
我缺少什么?如何在不使用position:absolute物品的情况下实现上述结果
到目前为止我做了什么
HTML:
<div class="product-list " id="product_list">
<div class="item ">
<a href="#" data-id="228">
<div class="item-top">
<img width="211" height="165" src="" class="et-portfolio-thumbnail img-responsive wp-post-image" alt="product66_26">
</div>
<div class="item-bottom">
<div class="item-product-title">Unicity Activate</div>
</div>
</a>
</div>
<div class="item ">
<a href="#" data-id="227">
<div class="item-top">
<img width="165" height="193" src="" class="et-portfolio-thumbnail img-responsive wp-post-image" alt="product55_24">
</div>
<div class="item-bottom">
<div class="item-product-title">Lean Complete</div>
</div>
</a>
</div>
<div class="item ">
<a href="#" data-id="223">
<div class="item-top">
<img width="245" height="215" src="" class="et-portfolio-thumbnail img-responsive wp-post-image" alt="product44_21">
</div> …Run Code Online (Sandbox Code Playgroud) int p=223;
int q=569;
int n=p*q;
double num=65;
double d=100877;
exp=Math.pow(num,d);
c=(exp)%n;
System.out.print(expo);
System.out.print("\n"+Math.pow(65, 100877));
Run Code Online (Sandbox Code Playgroud)
输出:2147483647无限
但实际结果超过3000位,我怎样才能得到完整的数字?
如何使用jquery获取并检查href路径是否包含图像路径或其他链接. 例如:
<a href="image.png"><img src="image.png"/></a>
Run Code Online (Sandbox Code Playgroud)
在上面的示例中,锚文本包含图像src,然后只有jquery函数才能找到href path.ie,href仅当锚文本包含img标记时才获取路径.
我查看了.hasjquery api来检查图像.但是我如何检查href是否包含图像路径或其他路径.根据SO用户的建议我要做的事情,比如.
<script type="text/javascript">
jQuery(document).ready(function($) {
if (jQuery('a').has("img")) { // it return the no. of img tag within a
jQuery('a').has("img").prop('href', '#');
}
});
</script>
Run Code Online (Sandbox Code Playgroud)
请参阅上面的脚本执行操作以检查锚文本是否包含图像标记,然后仅检查锚标记的href链接.以同样的方式添加喜欢做上面的脚本来检查href是否包含任何图像路径或链接.如果图像路径包含在href上,则应执行上述脚本,否则不执行.
@Downvoters的任何可能原因.?
是否可以在jquery中做,任何建议将非常感谢.