关于widget访问局域网IP的问题

Forums » General Opera topics » Opera Widgets

This topic has been closed. No new entries allowed.

Reason: Non-English post.

Forum rules and guidelines

You need to be logged in to post in the forums. If you do not have an account, please sign up first.

Go to last post

4. January 2012, 08:08:17

iyata

Posts: 3

关于widget访问局域网IP的问题

关于widget访问局域网IP的问题
如何使用widget通过ajax访问局域网IP
贴出代码请懂的指教一下
function GetIndex()
{
var xhr = new XMLHttpRequest ();
xhr.onreadystatechange = function () {
if ( this.readyState == 4 ){if ( this.status == 200 )
{var Result=xhr.responseText;document.body.innerHTML=Result;}
}}
xhr.open( 'GET','http://192.168.1.99/Get/?Action=Try', false );
xhr.send();
}
这样访问完全没有效果,请指教一下

Forums » General Opera topics » Opera Widgets