开发者

titanium open new url

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜