我想在html网页中访问https://link.hhtjim.com/163/65766.mp3
时间: 2023-06-16 16:05:29 浏览: 68
要在HTML网页中访问HTTPS链接,可以使用以下代码:
```html
<audio controls>
<source src="https://link.hhtjim.com/163/65766.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
```
这将在网页上嵌入一个音频播放器,并播放链接为"https://link.hhtjim.com/163/65766.mp3"的MP3文件。请注意,这个链接需要在浏览器中打开,否则可能会受到安全限制。
相关问题
为什么利用auto controls访问https://link.hhtjim.com/163/65766.mp3 不能播放
可能是因为使用auto controls访问https://link.hhtjim.com/163/65766.mp3时,网站未能正确配置HTTPS证书,导致浏览器无法建立安全连接。此外,还可能由于浏览器的安全设置或插件等原因导致无法播放。建议尝试使用其他浏览器或清除浏览器缓存和Cookie后再尝试访问该链接。如果问题仍然存在,建议联系网站管理员或技术支持人员进行进一步的排查和解决。
js 一个 正则验证 下面三个链接 https://live.bilibili.com/9906982?a=1 https://live.bilibili.com/9?b=` https://live.bilibili.com/99?c=A
你可以使用正则表达式来验证这三个链接。以下是一个示例的正则表达式,可以用于验证这些链接是否符合要求:
```javascript
const regex = /^https:\/\/live\.bilibili\.com\/\d+\?[a-zA-Z]=\w+$/;
const link1 = "https://live.bilibili.com/9906982?a=1";
const link2 = "https://live.bilibili.com/9?b=`";
const link3 = "https://live.bilibili.com/99?c=A";
console.log(regex.test(link1)); // true
console.log(regex.test(link2)); // false
console.log(regex.test(link3)); // true
```
这个正则表达式的含义是:以`https://live.bilibili.com/`开头,后面跟着一个或多个数字,然后是`?`,再后面是一个字母(大小写不限),最后是一个或多个字母、数字或下划线。