(1)    单独打开一个浏览器窗口

this.controller.serviceRequest("palm://com.palm.applicationManager",
{
    method : 
"open",
    parameters :
    {
        id : 
'com.palm.app.browser',
        params :
        {
            target : 
"http://www.google.com/"
        }
    }
});



(2)    内嵌一个浏览器窗口

<div x-mojo-element="WebView" id="webViewId"></div>

this.controller.setupWidget("webViewId", this.attributes =

{

    url : 'http://www.google.com',

    minFontSize : 18,

}, this.model = {}); 

 


 

相关文章:

  • 2021-04-27
  • 2021-06-07
  • 2021-08-29
  • 2021-05-11
  • 2022-01-14
  • 2022-02-28
  • 2022-01-16
  • 2021-07-31
猜你喜欢
  • 2021-10-09
  • 2021-04-02
  • 2022-01-23
  • 2021-11-26
  • 2022-02-23
  • 2021-09-04
相关资源
相似解决方案