App Framework框架之选择器(2)

App Framework选择器类似于jquery

范例:

$settings=$(div_settings);
        var $login_li=$settings.find("#settings_user");

var $user_modify_password_div=$(user_modify_password_panel);
 $user_modify_password_div.find("input[name=old_password]").val("");

 $('#uib_login input[name=password]').val("");

 

<!-- af> af Selector -->
                <div id="af1" class="panel" title="$()" data-nav="menu_AppFramework">   <span id="aftest2">This is some html</span>
                    <br />
                    <br />
                    <a class="button"  onclick="alert($('#aftest2')[0])">Click to get Object</a>
                    <br />
                    <br />
                    <a class="button"  onclick="alert($('#aftest2').html())">Click to get Content</a>
                </div>

 



你可能感兴趣的:(APP,framework,选择器)