语法 1:
option( optionName )
返回:Object
获取当前与指定
optionName
关联的值。-
optionName类型:String要获取的选项的名称。
代码示例:
调用方法:
var isDisabled = $( ".selector" ).popup( "option", "disabled" );
语法 2:
option()
返回:PlainObject
获取包含表示当前弹出选项哈希的键/值对的对象。
- 此签名不接受任何参数。
代码示例:
调用方法:
var options = $( ".selector" ).popup( "option" );
语法 3:
option( optionName, value )
返回:jQuery (plugin only)
设置与指定
optionName
关联的弹出选项的值。代码示例:
调用方法:
$( ".selector" ).popup( "option", "disabled", true );
语法 4:
option( options )
返回:jQuery (plugin only)
为弹出窗口设置一个或多个选项。
-
options类型:Object要设置的option-value 对的Map。
代码示例:
调用方法:
$( ".selector" ).popup( "option", { disabled: true } );
相关用法
- JQuery Mobile Popup open用法及代码示例
- JQuery Mobile Popup overlayTheme用法及代码示例
- JQuery Mobile Popup initSelector用法及代码示例
- JQuery Mobile Popup dismissible用法及代码示例
- JQuery Mobile Popup classes用法及代码示例
- JQuery Mobile Popup create( event, ui )用法及代码示例
- JQuery Mobile Popup arrow用法及代码示例
- JQuery Mobile Popup beforeposition( event, ui )用法及代码示例
- JQuery Mobile Popup transition用法及代码示例
- JQuery Mobile Popup defaults用法及代码示例
- JQuery Mobile Popup enable用法及代码示例
- JQuery Mobile Popup reposition用法及代码示例
- JQuery Mobile Popup shadow用法及代码示例
- JQuery Mobile Popup tolerance用法及代码示例
- JQuery Mobile Popup close用法及代码示例
- JQuery Mobile Popup theme用法及代码示例
- JQuery Mobile Popup destroy用法及代码示例
- JQuery Mobile Popup afterclose( event )用法及代码示例
- JQuery Mobile Popup positionTo用法及代码示例
- JQuery Mobile Popup disabled用法及代码示例
- JQuery Mobile Popup corners用法及代码示例
- JQuery Mobile Popup disable用法及代码示例
- JQuery Mobile Popup afteropen( event )用法及代码示例
- JQuery Mobile Popup history用法及代码示例
- JQuery Mobile Pagecontainer beforeshow( event, ui )用法及代码示例
注:本文由纯净天空筛选整理自jquerymobile.com大神的英文原创作品 Popup option。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。