//  $('#ditu').click(function(){
//      $.ajax({
//          type:"post",
//          url:"http://www.zhongfangshequ.com/index.php/home/Map/map",
//          data:{
//               address:$('#text3').text()
//          },
//          success:function(data){
//              var data=JSON.parse(data)
//              console.log(data.address)
//              if(data.re ==1){
//                  window.location.href=data.address;
//              }else{
//              }
//          }
//      });
//  })
 
                                        
                                    
                                    - 发布:2018-01-03 16:17
- 更新:2018-02-09 10:15
- 阅读:1456
 
                                                                    
                                                                倾听雨落 (作者) - 奋斗!
问题已经解决,上代码
$('#didi').click(function(){
$.ajax({
type:"get",
url:"http://www.zhongfangshequ.com/index.php/home/Map/map",
data:{
address:$('#text3').text()
},
success:function(data){
//alert(data)
var data=JSON.parse(data)
console.log(data.address)
var htp=data.address
if(data.re ==1){
var nw=plus.webview.create(htp, 'test', {statusbar:{background:'#346198'}});
nw.show()
nw.setStyle({'popGesture':'close'});
}else{    
            }  
        }    
    });  
}) 
             
             
             
			
 
                                                                    


 
            
倾听雨落 (作者)
好的,我试试,谢谢
2018-01-03 16:23