12345678910111213141516171819202122232425262728293031323334353637 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta name="viewport"
- content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
- <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
- <title>视频认证</title>
- <style>
- body {
- margin: 0;
- background: #F5F6FA;
- }
-
- </style>
- </head>
- <body>
- <div id='app'>
- <video width="320" height="240" controls id='srcSource'>
- </video>
- </div>
- </body>
- <script type="text/javascript" src="https://taohaoliang.oss-cn-beijing.aliyuncs.com/app/jquery.min.js"></script>
- <script type="text/javascript">
- var src = getUrlParam("src")
- function getUrlParam(name) {
- var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
- var r = window.location.search.substr(1).match(reg); //匹配目标参数
- if (r != null) return unescape(r[2]);
- return null; //返回参数值
- }
- console.log("src")
- console.log(src)
- $('#srcSource').attr("src",src)
- </script>
- </html>
|