我使用.load加载用于加载照片的HTML代码。它运作良好,但是当我在页面上添加的照片(没有jquery)比第一张照片消失时。可能无法加载...该怎么办?
jquery:
function uvodni_fotka_load(){
if(window.innerWidth < 700){
$(function(){
$("#uvodni_fotka").load("mobile.html");
});
} else {
$(function(){
$("#uvodni_fotka").load("normal.html");
});
}
}
uvodni_fotka_load();
我要加载的HTML(此代码来自我有照片并且运行良好的页面):
<canvas data-prodibi='{"id":"r0265j8w89d9jk","width":5892,"height":2812,"smartX":0.5,"smartY":0.538629,"account":"vitius"}'>
<script>
;
! function () {
if ( window.prodibiAsync == null ) {
var s = document.createElement( 'script' );
s.async = !0;
s.src = 'https://max1.prodibicdn.com/libraries/pages/prodibi.embed.2.0.min.js';
document.body.appendChild( s );
}
window.prodibiAsync = window.prodibiAsync || [];
prodibiAsync.push( {
type: "settings",
settings: {
account: "vitius"
}
} );
}();
</script>
</canvas>