Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在网站中嵌入了一个 youtube 视频,并希望阻止点击它的能力(这会暂停视频)。使用 jQuery 尝试过各种事情,例如 stopPropagation、preventDefault 等。
简而言之,我想添加一些内容,以便单击页面完全没有任何作用。任何想法谢谢。
您可以使用 YouTube 无铬播放器并使用JavaScript API控制播放器。
在我的jsp中,如果我打电话<form action="/sampleServlet" method="get" name="form1">,我会得到以下异常:
<form action="/sampleServlet" method="get" name="form1">
http 404 错误--未找到 sampleServlet。我在 web.xml 文件中设置