我使用laravel 4和typeahead.js,但獲取錯誤消息,因爲{{}}分隔符與JQuery相同。laravel blade模板衝突jquery delimiter
<script type="text/javascript">
jQuery(document).ready(function($) {
$('#pessoa_id').typeahead([
{
name: 'planets',
remote: '/sistema/lancamento/pessoa/%QUERY',
template: '<p><strong> {{pessoa_id}} </strong> – {{nome}} </p>',
]);
任何消化?
謝謝。 埃爾德
雖然我在下面回答,這是http://stackoverflow.com/questions/20432935/laravel-4-blade-and-hogan-js-syntax的副本 –