javascript iframe 视频解码

function confirmVdo(){
var videoVal = $(".video_src").val();
if(videoVal){
videoVal = videoVal.replace(/[\r\n]/g,"");
videoVal = encodeURIComponent(videoVal);//这两行解码视频
}else{
$(".action").text("请输入视频地址");
return false;
}

posted @ 2016-02-26 17:08  smght  阅读(397)  评论(0编辑  收藏  举报