tomcat  mvn

来源:互联网 发布:mysql事务是什么 编辑:程序博客网 时间:2024/06/02 07:22
HI投顾页面 后台数据请求步骤

  1. 启动 D:\apache-tomcat-7.0.42\bin\startup.bat
  2. 启动 eclipse -- servers -- tomcat 7.0  启动             (建一个mvn工程)
     3. 浏览器  localhost:8080/hiiap/page/index3.html

      后台数据  localhost:8080/hiiap/analogStock/listTopSimAccount


HI投顾首页  : 请求数据地址 :  url "/hiiap/analogStock/listTopSimAccount",


$.ajax({
    url "/hiiap/analogStock/listTopSimAccount",
    type "post",
    data 'json',
    success : function(data) {
        topSimAccounts = data.topSimAccounts;
        for(var index in topSimAccounts){
            ACCOUNT_ID topSimAccounts[index].ACCOUNT_ID;
            TOTAL_EARNINGS topSimAccounts[index].TOTAL_YIELD;
            for(var 0;4;++){

                );
            }
        }
        console.log(data);
    },
    error :function(){
        console.log('请求后台出错!');
    }
});










tomcat  mvn
0 0
原创粉丝点击