我一直在構建我的第一個鈦合金應用程序,並且我有一個5步註冊表單,它具有分佈在5個視圖中的不同表單域。在我最後一步,我想發佈表單元素的值。訪問每個字段值的最佳方式是什麼?例如。在screen5中,我如何獲得screen1視圖中$ .name字段的值?鈦合金獲得視場價值
下面是我的一些代碼:
<ScrollableView id="indexSV" showPagingControl="false" scrollingEnabled="false" top="0">
<Require src="screen1" id="screen1"></Require>
<Require src="screen2" id="screen2"></Require>
<Require src="screen3" id="screen3"></Require>
<Require src="screen4" id="screen4"></Require>
<Require src="screen5" id="screen5"></Require>
</ScrollableView>
,這裏是屏幕的結構如何:
<Alloy>
<View>
<Label top="20">YOUR NAME:</Label>
<TextField top="5" id="name" />
<Button top="20" right="10%" id="btnNext" width="120" onClick="next" class="next">NEXT STEP</Button>
</View>
</Alloy>
謝謝。這正是我需要的。 – Castles 2014-12-02 05:21:31