Jquery 组件更新内容后如何刷新显示最新内容

1、Combobox or select dropdowns 
var myselect = $("#sCountry");
 myselect[0].selectedIndex = 3;
 myselect.selectmenu('refresh');
or
$( "select" ).selectmenu( "refresh", true );

2、Listviews 
$('#mylist').listview('refresh');

3、Slider control 
$('#slider').val(80).slider('refresh');

4、Toggle switch 
var myswitch = $("#toggle");
 myswitch[0].selectedIndex = 1;
 myswitch .slider("refresh");

5、Radio buttons 
$("input[type=radio]").checkboxradio('refresh');

6、Checkboxes 
$('#checkbox-1').attr('checked',true).checkboxradio('refresh');
or
$( ".selector" ).prop( "checked", true ).checkboxradio( "refresh" );

7、Buttons 
$( "[type='submit']" ).button( "refresh" );
or
$( ".selector" ).buttonMarkup( "refresh" );

8、Column-Toggle Table 
$( ".selector" ).table-columntoggle( "refresh" );

9、Reflow Table 
$( ".selector" ).table( "refresh" );

10、Span等
var c = "";
c="还剩:0000小时0000秒";
$("#p_time").html(c).trigger("create");

你可能感兴趣的:(html)