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.
我有一个圆形绘图模式。当您在此模式下绘制一个圆圈时,当您将圆圈拖动到正确的大小时,我有一个显示该圆圈半径的标签。这个标签在我画完圆圈后立即消失。我如何让这个圆圈在完成后留下并显示?我不确定为什么标签会消失。有任何想法吗?
我通过使用 persist: true 解决了我的问题。
var polyOptions = {sides: 40, persist: true, style: style};