My first HTML5 application and my first HTML5 Application
Directly paste the Code:
Source code:
<? Xml version = "1.0" encoding = "UTF-8"?>
<Div xmlns = "http://www.w3.org/1999/xhtml" xid = "window" class = "window" component = "$ UI/system/components/justep/window" design = "device: mobile ">
<Div component = "$ UI/system/components/justep/model" xid = "model"/>
<! -- Bind a Monitored object -->
<Input bind-textinput = "name"> </input>
<! -- Output is displayed when name has a value. Otherwise, the expression bound to the hidden text is hidden. -->
<Output bind-visible = "name" bind-text = "'hello, '+ name. get () + '! '"> </Output>
</Div>
JS:
Define (function (require ){
Var $ = require ("jquery ");
Var justep = require ("$ UI/system/lib/justep ");
Var Model = function (){
This. callParent ();
// Define the Monitored object
This. name = justep. Bind. observable ("");
};
Return Model;
});