如何使用 2 个不同的工具提示标题来表示 true 或 false... 我现在被困在了
title="{'text1' : attribute===true , 'text2' : attribute===false}"
这似乎不是正确的方法...如果你们能提供一点帮助就好了。提前谢谢
最佳答案
只是做:
title="{{ attribute ? 'text1' : 'text2'}}"
关于javascript - bool 值更改 HTML、AngularJS 上的标题/工具提示 react ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35289817/