1.因为解析接口只允许iframe框架调用
2.写了个html调用解析接口
<div id="a1" class="content" style="display:none;"></div>
<script type="text/javascript">
var str_href=window.location.href
var other_l =str_href.substring(str_href.indexOf('=')+1);
urlplay('解析接口地址'+other_l);
function urlplay(url){
$("#a1").html('<iframe width="100%" height="100%" src="' + url+'" frameborder="0" border="0" marginwidth="0" marginheight="0" scrolling="no" allowfullscreen="true" id="yesia" ></iframe>');
// setTimeout(function(){
// iframe = document.getElementsByTagName('iframe')[0];
// console.log(iframe);
// },1000)
}
网友评论