layer.destroy()

This will remove a layer from the hierarchy and remove all its listeners. If the layer has children they will be destroyed too.
译:这将从层次结构中删除一层并删除其所有的听众。如果层层他们也将被摧毁。

layerA = new Layer
layerA.destroy()

results matching ""

    No results matching ""