programming/mobile web

[mobile web] jquery mobile configurable option 설정하기

labj 2012. 6. 18. 11:19

[mobile web] jquery mobile configurable option 설정하기


1. 방법 1


<!-- jquery mobile configurable option -->

<script language="javascript" type="text/javascript">

$.extend(  $.mobile , {

ajaxEnabled : false,

hashListeningEnabled: false

});

</script>



2. 방법 2

$(document).bind("mobileinit",function(){

$.extend($.mobile,{

defaultTransition:'slide',

loadingMessage:'Now Loding..',

ajaxEnabled:false

,hashListeningEnabled: false//history && hashes

,linkBindingEnabled : false

,autoInitialize:false

,metaViewportContent: 'width=device-width,minimum-scale=0.5,maximum-scale=0.5'

});

});


[mobile web] jquery mobile configurable option 설정하기