This plugin get the query string appended in url in a easy way, like a GET in a server side language
//url: http://www.foo.com/?test=var&test2=var2
var save1 = $.jget['test'];
alert(save1);
//this will output 'var'
var save2 = $.jget['test'2];
alert(save2);
//this will output 'var2'
for (var test in $.jget) {
$.debug(test+ ' = ' + $.jget[test] );
}
//the method debug comes with the plugin to retrieve a message in firebug, or a alert in IE
使用场景 通过程序获取电脑主机的信息。 代码 链接 测试 首先,开启电脑的SNMP服务,方法在百度上搜一下便有:https://blog.csdn.net/davebobo/article/details/51308601 然后打开eclipse,导入源码,运行程序,控制台会显示打印信息: