我有问题,使下面的代码工作。基本上,我想通过在鼠标悬停时附加到body来移动元素。我的代码出了什么问题?
谢谢
<div class="wrp">
<p>this is a wrap</p>
<p><img src="myimg.jpg" /></p>
</div>
<div class="wrp">
<p>this is a wrap2</p>
<p><img src="myimg.jpg"
我正在使用CLI命令:$ ng build --prod构建一个Angular项目,并收到以下错误:
ERROR in src/app/fetch-api/fetch-api.component.html(5,7): : Property 'featured' does not exist on type 'string[]'.
我的html代码是:
<ul>
<li *ngFor="let fetch of fetchApi.data.featured">
<ul>
我使用replaceWith来替换图片,只使用它们的源。下面是我使用的代码
var html = 'Hello<div><br></div><img src="abc.png" class="img-responsive" style="width: 100%;"><div><br></div><div>Video</div><div><br></div><div><br>
我需要获得视频的价值,并需要更改为新的价值...为此,我使用了这个函数:
var video = $('#task2ResultVideo').get(0);
console.log($(video).attr('poster')); // i am getting this
$(video).attr('src',function(num,val){
console.log(num,val) // i am not getting this..
})
HTML:
<video id=&