-
Notifications
You must be signed in to change notification settings - Fork 0
PassValuesBetweenPages
hp-sam edited this page Dec 9, 2014
·
1 revision
apps.pushPage("pageid")
apps.push("appid", "pageid")
apps.switchPage("pageid")
apps.switch("appid")--- apps.pushPage(context)
apps.pushPage({
pageId = "somepageid",
my_parameters = xxx
})
--- apps.push(context)
apps.push({
appId = "appid",
pageId = "pageid",
my_parameters = xxx
})
--- apps.switchPage(context)
apps.switchPage({
pageId = "pageid",
my_parameters = xxx
})
--- apps.switch(context)
apps.switch({
appId = "appid",
my_parameters = xxx
})--- 新页面
function onCreated(context)
-- context: {appId = "appid", my_parameters = xxx}
local my_parameters = context.my_parameters
...
end