Jquery函数不适用于Opera,但适用于Chrome和IE

时间:2015-07-13 01:48:37

标签: jquery opera

我在使用基本上将内容加载到div中的函数时出现问题。它在Chrome和IE中无缝工作,但在Opera Next中没有。我徒劳地做了一些谷歌搜索。

<script language="JavaScript" type="text/javascript">
function swapContent(cv1, cv2, url, id) { alert('called');
$(id).html('<img style="position: absolute; left: 50%; top: 50%; margin-left: -80px; margin-top: -80px;" src="loading.svg" width="100px" height="100px">').show();
$.post(url, {postvariable1: cv1, postvariable2: cv2} ,function(data) {
$(id).html(data).show();
});
}
</script>

0 个答案:

没有答案