zoukankan      html  css  js  c++  java
  • jquery mobile各类组件刷新方法

     

    1、Combobox or select dropdowns

    var myselect = $("#sCountry");
     myselect[0].selectedIndex = 3;
     myselect.selectmenu('refresh');
    or
    $( ".selector" ).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[value=grid]").attr('checked',true).checkboxradio('refresh');
    or
    $( ".selector" ).prop( "checked", true ).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" );
  • 相关阅读:
    Blender基础操作
    反汇编及linux下edb的下载
    混淆矩阵(confusion_matrix)含义
    Python大数据第三次的作业
    Python的DataFrame基础使用
    Python数据标准化
    爬虫之xpath
    luffy项目上线
    爬虫之selenium
    celery
  • 原文地址:https://www.cnblogs.com/exmyth/p/7843414.html
Copyright © 2011-2022 走看看