无法识别的表达式错误
Unrecognized expresssion error?
<li class ="block" ng-repeat="i in items | searchFor:searchString" id={{i.title}}>
<a><img class="gallery" id={{i.title}} ng-src="{{i.image}}" title="{{i.title}}" /></a>
<a href="{{i.image}}" download><button id="eye" title="Preview"></button></a>
<p>{{i.title}}</p>
</li>
<<p> 条目列表/strong> $scope.items = [
{
url: '#',
title: 'Mountain',
image: 'https://images.unsplash.com/photo-1443890923422-7819ed4101c0'
}];
抛出错误
jquery.min.js:2 Uncaught Error:语法错误,无法识别的表达式:https://images.unsplash.com/photo-1443890923422-7819ed4101c0
我相信这里出现了错误
<a href="{{i.image}}" download><button id="eye" title="Preview"></button></a>
尝试将href更改为ng-href
错误发生,因为您使用的是href而不是ng-href自从{{i。Image}}不被计算
https://docs.angularjs.org/api/ng/directive/ngHref相关文章:
- 如何修复 jQuery 1.8“语法错误,无法识别的表达式”错误
- 即使验证正则表达式错误,也提交表单
- Jquery 无法识别的表达式错误
- Nodejs 正则表达式错误:“无效的正则表达式:没有什么可重复的”
- 节点.js + 表达式错误:无法读取未定义的属性“句柄”
- 正则表达式错误
- 正则表达式错误javascript
- 测试邮政编码时出现Javascript正则表达式错误
- javascript正则表达式错误
- Netbeans中的正则表达式错误在其他编辑器中不存在
- Visual studio 12和正则表达式错误
- Javascript正则表达式错误,两个字符之间的文本
- jquery中的正则表达式错误
- 需要帮助修复JavaScript正则表达式错误
- 无法识别的表达式错误
- Unexpected "write after end"表达式错误
- javascript中的正则表达式错误
- 如何在符号(和)上编写正则表达式错误
- Javascript 表达式错误 (0 <= 14 < 10)
- 启动日期选择器changeDate正则表达式错误