1.blade模板
foreach中first/last:
ex:
@foreach ($menu as $field=>$item)
@if($loop->first)
first // first
@endif
@if($loop->last)
last // last
@endif
length:{{$loop->count}} // length
{{$loop->index}} // from 0
{{$loop->iteration}} // from 1
@endforeach
2.netbeans正则替换
替换前:{if($a>1)}
替换后:@if($a>1)
表达式:
替换前: {if(.*?)}
替换后: @if($1)












网友评论