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.
KineticJS 中有一种方法可以从 json 中绘制舞台(画布)
Kinetic.Node.create(JSON, 'container');
舞台上有很多层次。我已将图层保存到 JSON
如何在现有舞台上仅绘制一层?
为什么不直接使用 AJAX 来执行代码呢?
$.ajax( url: success: function(response){ stage.add(new Kinetic.Layer()); } );
您可以使这取决于存储在 JSON 对象中的内容。