page.currentPage < Layer object>

Get the current page layer. (Read-only)
译:获取当前页图层。 (只读)

page = new PageComponent

# Get the current page layer 
print page.currentPage

Note that you have to have pages within the page.content layer. You can also listen to the "change:currentPage" event to get the new currentPage, after it has been changed.
译:注意,你必须page.content层内页。你也可以监听”change:currentPage”事件得到新的currentpage,在它被改变之后。

page = new PageComponent

# When the current page changes, print the new one 
page.on "change:currentPage", ->
    print page.currentPage

results matching ""

    No results matching ""