angularjs – 角度表达式等于
发布时间:2020-12-17 18:02:11 所属栏目:安全 来源:网络整理
导读:我想做这样的事情. h3 ng-show="{{mode == 'create'}}"Create Vacancy/h3h3 ng-show="{{mode == 'edit'}}"Edit this Vacancy/h3 $scope.mode是“创建”或“编辑”的位置. 我该怎么做呢?我正在尝试什么都没有. 解决方法 ng-show evals表达式本身,所以不要使
我想做这样的事情.
<h3 ng-show="{{mode == 'create'}}">Create Vacancy</h3> <h3 ng-show="{{mode == 'edit'}}">Edit this Vacancy</h3> $scope.mode是“创建”或“编辑”的位置. 我该怎么做呢?我正在尝试什么都没有. 解决方法
ng-show evals表达式本身,所以不要使用插值文本.将您的代码更新为:
<h3 ng-show="mode == 'create'">Create Vacancy</h3> <h3 ng-show="mode == 'edit'">Edit this Vacancy</h3> (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |