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.
在某些情况下,我想 pop() Canvas.paper.set() 但前提是它不为空。有没有办法检查它包含多少个元素,或者至少这个数字不为零?我检查了 Rafael 参考资料,可以找到任何信息。关于那个。
set有一个length属性会告诉你它包含多少元素。
set
length
someset.length