手机版

JSON-RPC-Java简介(3)

时间:2025-07-06   来源:未知    
字号:

30. <th>性别</th>

31. <th>年龄</th>

32. <th>生日</th>

33. <th>电话</th>

34. <th>地址</th>

35. </tr>

36. </tbody>

37. </table>

38. </body>

39. </html>

五、新建一JavaScript文件show.js

Js代码

1. // 定义一个JSONRPC对象

2. var jsonrpc;

3. window.onload=function(){

4. jsonrpc=new JSONRpcClient("JSON-RPC");

5. }

6. // 事件处理函数

7. function search(){

8. var userId=document.getElementsByName("userId")[0].value;

9. if(userId==null||userId==""){

10. erService.getNameList(showList);

11. erService.getNameSet(showSet);

12. erService.getNameMap(showMap);

13. }else{

14. erService.getNameById(showName,userId);

15. erService.getUserById(showUser,userId);

16. }

17. }

18. // 定义一个User类

19. function User(name,gender,age,phone,address,email){

JSON-RPC-Java简介(3).doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
×
二维码
× 游客快捷下载通道(下载后可以自由复制和排版)
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
注:下载文档有可能出现无法下载或内容有问题,请联系客服协助您处理。
× 常见问题(客服时间:周一到周五 9:30-18:00)