gpt4 book ai didi

javascript - 带有 html 注入(inject)的 Firefox 问题

转载 作者:行者123 更新时间:2023-11-28 03:50:13 25 4
gpt4 key购买 nike

我正在尝试将一个 href url 注入(inject)到一个 div 中,此代码在 Chrome 中运行良好,但在 Firefox 中运行不佳,关于原因的任何指示?谢谢。

HTML-

<div id="content"></div>
<style>

embed, object {
height: 100%;
top: 0;
position: absolute;
width: 100%;
}
</style>

JQuery-

<script>
$(document).ready(function () {
$("li.sub-level3").click(function () {

var hrefValue = $(this).children().clone().attr("href");

history.pushState(null, null, hrefValue);
$("#content").html('<object data=' + hrefValue + ' />').css("min-height", "1000px");

$("p").css("display", "none")
$("#cookie-bar").css("display", "none")

});
});
</script>

控制台在以下函数中显示“o 未定义”-

prepareTx: function(e, t) {

var i, s, n, a, r, o = this.opts();
return o.slideCount < 2 ? void(o.timeoutId = 0) : (!e || o.busy && !o.manualTrump || (o.API.stopTransition(), o.busy = !1, clearTimeout(o.timeoutId), o.timeoutId = 0), void(o.busy || (0 !== o.timeoutId || e) && (s = o.slides[o.currSlide], n = o.slides[o.nextSlide], a = o.API.getSlideOpts(o.nextSlide), r = o.API.calcTx(a, e), o._tx = r, e && void 0 !== a.manualSpeed && (a.speed = a.manualSpeed), o.nextSlide != o.currSlide && (e || !o.paused && !o.hoverPaused && o.timeout) ? (o.API.trigger("cycle-before", [a, s, n, t]), r.before && r.before(a, s, n, t), i = function() {
o.busy = !1, o.container.data("cycle.opts") && (r.after && r.after(a, s, n, t), o.API.trigger("cycle-after", [a, s, n, t]), o.API.queueTransition(a), o.API.updateView(!0))
}, o.busy = !0, r.transition ? r.transition(a, s, n, t, i) : o.API.doTransition(a, s, n, t, i), o.API.calcNextSlide(), o.API.updateView()) : o.API.queueTransition(a))))
},

最佳答案

您好,根据 netmarketshare.com/... 只有 0.57% 的用户使用 Firefox 手机/平板电脑。

我想这么小的百分比不值得担心,因此我的解决方案是提醒用户(如果他们在手机/平板电脑上使用 Firefox)使用其他浏览器。

任何人对此有异议,请告诉我,以便我审查解决方案。

感谢您的回复。

关于javascript - 带有 html 注入(inject)的 Firefox 问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41898566/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com