用jquery ajax,如果不行,就调试一下看哪里出错。在chrome下右键点击审查元素,如果出现‘Failed to load resource: the server responded with a status of 500’的提示,那就是webservice方法有问题。或者在浏览器上输入地址加webservice测试一下webservice是否可用,如果可用那就是js语法的问题了。
用 ajax 写