on click 跳转其他页面
$("#pPower").on("click",".police",function () {
var id = $(this).parent().data('id').toString();
var url = "?stationName="+areaName2+"&stationId="+area;
window.parent.openIframWithdata(id,url);
})
下面是接口
function getpPower() {
$.ajax({
type : 'post',
url :"home/getStationInfoTotal.do", //left
async: true,
dataType:'json',
data :{
type:$("#type").val(),
area:area,
},
success :function(d,status){
if(d.data == null){
return ;
}
pPower.minjing = d.data.m;
pPower.wujing = d.data.w;
pPower.xiejing = d.data.x;
pPower.qita = 0;
pPower.jingli = 0;
pPower.cheliang = d.data.c;
}});
<div id="pPower" style="position: relative; cursor: pointer;" data-id="10101">
<p class="service">1<span>{{m}}人次</span></p>
<p class="service">2<span>{{w}}人次</span></p>
<p class="service">3<span>{{x}}人次</span></p>
<p class="service">4<span>{{q}}人次</span></p>
<p class="service">5<span>{{j}}人次</span></p>
<p class="service">6<span>{{c}}车次</span></p>
</div>
我现在想点击 接过来的数据数据后跳转到其他页面,要怎么写好?求助。。。