高校二级网站建设意义,菏泽科技网站建设,当当网网站建设方案,网站分页设计见 百度经验
http://jingyan.baidu.com/article/7f766dafbc18f24101e1d014.html JQM里面当我们更新了某些页面标签(如: listview, radiobuttons, checkboxes, select menus)里的数据时,必须做refresh操作. 为什么必须做refresh操作操作呢?因为JQM在做页面渲染的时候,为了使样…见 百度经验
http://jingyan.baidu.com/article/7f766dafbc18f24101e1d014.html JQM里面当我们更新了某些页面标签(如: listview, radiobuttons, checkboxes, select menus)里的数据时,必须做refresh操作. 为什么必须做refresh操作操作呢?因为JQM在做页面渲染的时候,为了使样式跟客户端程序相似, 隐藏了原始的标签然后用一些新的标签和自定义的样式来表现原标签,其实新样式的标签已经不是原来的标签,所以更新了数据必须做refresh操作. 各类标签的刷新 1.Textarea fields $(body).prepend(textarea idmyTextArea/textarea);
$(#myTextArea).textinput(); 2.Text input fields$(body).prepend(input typetext idmyTextField /);
$(#myTextField).textinput(); 3.Buttons $(body).append(a href data-themee idmyNewButtontesting/a);
$(#myNewButton).button(); 4.Combobox or select dropdowns label forsCountryCountry:/label
select namesCountry idsCountry
option valueWhere You Live:/option
option valueadAndorra/option
option valueaeUnited Arab Emirates/option
/selectvar myselect $(#sCountry);
myselect[0].selectedIndex 3;
myselect.selectmenu(refresh); 5.Listviews ul idmyList data-rolelistview data-insettrue
liAcura/li
liAudi/li
liBMW/li
/ul$(#mylist).listview(refresh); 6.Slider control div data-rolefieldcontain
label forslider-2Input slider:/label
input typerange idslider-2 value25 min0 max100 /
/div$(#slider-2).val(80).slider(refresh); 7.Toggle switch div data-rolefieldcontain
label fortoggleFlip switch:/label
select nametoggle idtoggle data-roleslider
option valueoffOff/option
option valueonOn/option
/select
/divvar myswitch $(#toggle);
myswitch[0].selectedIndex 1;
myswitch .slider(refresh); 8.Radio buttons div data-rolefieldcontainfieldset data-rolecontrolgroup data-typehorizontallegendLayout view:/legendinput typeradio nameradio-view valuelist /label forradio-view-aList/labelinput typeradio nameradio-view valuegrid /label forradio-view-bGrid/labelinput typeradio nameradio-view valuegallery /label forradio-view-cGallery/label/fieldset
/div$(input[valuegrid]).attr(checked,true).checkboxradio(refresh); 9.Checkboxes div data-rolefieldcontain
fieldset data-rolecontrolgroup
legendAgree to the terms:/legend
input typecheckbox namecheckbox-1 idcheckbox-1 classcustom /
label forcheckbox-1I agree/label
/fieldset
/div$(#checkbox-1).attr(checked,true).checkboxradio(refresh);