扫码关注官方订阅号
ng-if="curindex==(node.nodeIndex+1)"
我这样写是 失效的,
curindex==node.nodeIndex+1
这样写 运算不对。
如何处理????我的意思是node.nodeIndex+1和curindex对比
第一种写法没错,angular和有些库是冲突的,ng-if会失效。还有就是你其他的地方写的不对。
我看来没有问题, 问题出在别处, 请贴报错
(curindex==node.nodeIndex+1) 试试
ng-if="curindex=='node.nodeIndex+1'"
这样写应该没有问题
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
扫描下载App
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
第一种写法没错,angular和有些库是冲突的,ng-if会失效。还有就是你其他的地方写的不对。
我看来没有问题, 问题出在别处, 请贴报错
(curindex==node.nodeIndex+1) 试试
这样写应该没有问题