在 AJAX 错误中嵌入代码
我正在尝试使用 AJAX 调用嵌入代码来进行嵌入,因为我有很多通道,并且我不想使用 PHP echo
我使用此代码
embedios="<video x-webkit-airplay=\"allow\"> ";
embedios=embedios+"<source src=\""+stream+"\" type=\"video/mp4\"> ";
embedios=embedios+"<!-- other sources and fallbacks go here --></video> ";
embed=embedios;
,问题是输出像这样
<video x-webkit-airplay="allow" tabindex="0">
<source type="video/mp4" src="http://yoursn0w.com/ch3.m3u8 "></source>
<!-- other sources and fallbacks go here -->
</video>
,但我想要它像这样出来
<video x-webkit-airplay="allow">
<source src="http://yoursn0w.com/ch3.m3u8" type="video/mp4">
<!-- other sources and fallbacks go here -->
</video>
我不知道我在这段代码中做错了什么
I'm trying to make the embed by using AJAX to call the embed code because I have many channels and I don't want to use PHP echo
I use this code
embedios="<video x-webkit-airplay=\"allow\"> ";
embedios=embedios+"<source src=\""+stream+"\" type=\"video/mp4\"> ";
embedios=embedios+"<!-- other sources and fallbacks go here --></video> ";
embed=embedios;
and the problem is that the output come out like this
<video x-webkit-airplay="allow" tabindex="0">
<source type="video/mp4" src="http://yoursn0w.com/ch3.m3u8 "></source>
<!-- other sources and fallbacks go here -->
</video>
but instead I want it to come out like this
<video x-webkit-airplay="allow">
<source src="http://yoursn0w.com/ch3.m3u8" type="video/mp4">
<!-- other sources and fallbacks go here -->
</video>
I dont know what I did wrong in this code
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
你没有终止你的字符串:
You aren't terminating your strings:
您的报价不正确匹配。
Your quotes are not matching properly.