开发者

titanium open new url

开发者 https://www.devze.com 2023-02-13 21:31 出处:网络
I would like to op开发者_如何学Cen a new url in the default browser when the user clicks on an image.

I would like to op开发者_如何学Cen a new url in the default browser when the user clicks on an image. I have looked into the Titanium.Platform.openURL but don't know how to use it.

any help is appreciated


Ti.Platform.openURL("http://m.google.com"); //replace string lit with your url


You just pass the URL you want to open on the click event as the parameter to openUrl


make sure the link has "http://" in front or it won't do anything

0

精彩评论

暂无评论...
验证码 换一张
取 消