我如何得到"h"?使用javascript链接获得的价值是多少? [英] How can I get "h" value from the link using javascript?

查看:59
本文介绍了我如何得到"h"?使用javascript链接获得的价值是多少?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用JavaScript从网址中获取"h"值? (ajax,jquery等)

How can I get "h" value from the url using javascript? (ajax,jquery or etc.)

URL: http://www.youtube-mp3.org /a/itemInfo/?video_id = p8-pP4VboBk

URL内容:

info = { "title" : "Laura Branigan - Self Control", "image" : "http://i.ytimg.com/vi/p8-pP4VboBk/default.jpg", "length" : "5", "status" : "serving", "progress_speed" : "", "progress" : "", "ads" : "", "pf" : "http://ping.aclst.com/ping.php/2452159/p8-pP4VboBk?h=761944", "h" : "83135b0b3cf927b5e6caf1cf991b66b3" };

目的是从外部URL 获取并打印此值(h);

Purpose is getting and print this value (h) from the external URL;

83135b0b3cf927b5e6caf1cf991b66b3

83135b0b3cf927b5e6caf1cf991b66b3

推荐答案

您可以尝试一下.我认为这很简单

You can try this. I think it is simpler

info.h

这篇关于我如何得到"h"?使用javascript链接获得的价值是多少?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆