python中是否可以直接调用网页中下面的JS函数,获取需要的结果值?
function loadTaskInfo(taskId){ HYIP.ajax("/ntask/loadAdvTaskInfo.html",{taskId:taskId},function(data){ var result = data.data; if(result!=null){ var taskName = result.taskName; var totalReward = result.totalReward; var margins = result.margins; var pently = result.pently; var totalNum = result.totalNum; var oneDayNum = result.oneDayNum; var stock = result.stock; var taskDesc = result.taskDesc; var taskImgUrl = result.taskImgUrl; var limitDay = result.limitDay; var limitNum = result.limitNum; var status = result.status; $("#taskName").html(taskName); $("#taskReward").html(totalReward); $("#taskMargins").html(margins); $("#taskPently").html(pently); $("#taskTotalNum").html(totalNum); $("#taskOneDayNum").html(oneDayNum); $("#taskStock").html(stock); $("#taskDesc").html(taskDesc); $("#taskImage").html("<img src='"+taskImgUrl+"' width='210' height='168'>"); $("#taskLimitDay").html(limitDay==1?"":limitDay); $("#taskLimitNum").html(limitNum); if(limitNum==1){ $("#receiveCount").attr("readonly","readonly"); } if(limitNum>=1){ $("#receiveLimitDiv").show(); } if(status==2){ $("#A_receiveTask").hide(); $("#receiveOver").hide(); $("#receiveOffline").show(); }else if(stock<=0){ $("#A_receiveTask").hide(); $("#receiveOver").show(); $("#receiveOffline").hide(); } var balance = '0'; if(balance!='' && balance!=null){ $("#rechargelink").show(); /* if(parseInt(margins.replace(/,/g,''))>parseInt(balance)){ $("#rechargelink").show(); } */ } } },function(data){ }); }
请高手解答下,用什么模块什么方法,谢谢