separation of logic and UI in titanium (javascript)

后端 未结 2 1164
借酒劲吻你
借酒劲吻你 2020-12-18 04:53

i\'m new to appcelerators titanium and javascript and i\'m interested in coding an iphone app. i recognized that there is a need of \"many\" code for creating the UI. that\'

2条回答
  •  自闭症患者
    2020-12-18 05:17

    ok, i just found a cool practice.

    i include the con_file.js with the application logic the view_file.js with

    Titanium.include('../controller/con_file.js');
    

    now i'm able to access the hole data structure.

提交回复
热议问题