<ahref="/site/contact?id={!! 1 !!}&name={!! 2 !!}">fdsaf</a><Br><ahref="{!! url('site/contact',['id'=>1,'name'=>2]) !!}">test</a>生成的地址如下:
<ahref="/site/contact?id=1&name=2">fdsaf</a><br><ahref="http://localhost:8000/site/contact/1/2">test</a>
url第二个参数并不是生
http://localhost:8000/site/contact/id/1/name/2
此时并不会跳到http://localhost:8000/site/contact
这个地址请求数据,而是报指不到
其它参考:
http://www.ekan001.com/articles/43
').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i ').text(i)); }; $numbering.fadeIn(1700); }); });
以上就介绍了laravel 模板view 中生成地址,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。










