效果如下:
做法:
1.选择javcscript项目,进入navigator app
2.在homepage.html中输入
<div> <table border="0" cellpadding="0" cellspacing="0"> <tr> <td id="date"> </td> </tr> </table> </div> </section>
3.在homepage.js中输入
var dateDiv = document.getElementById('date'); var picker = new WinJS.UI.DatePicker(dateDiv, {});
由此便有上面的效果