Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我对 appcelerator 有疑问。有没有人知道如何将闪烁的边框应用于 appcelerator 中的表格视图。我为 tableview 应用了边框颜色,但我需要用其他颜色闪烁它。任何帮助将不胜感激。谢谢你。
尝试使用 javascript setInterval。
setInterval(function() { if (table.borderColor == '#F00') { table.borderColor = '#0F0'; } else { table.borderColor = '#F00'; } }, 500);
首先在tableView 中设置一个borderColor 并使用setInterval() 将它与其他颜色进行交互。将时间以毫秒为单位设置为您希望它首先闪烁的方式。