导致错误的原因是“无法从已释放的脚本执行代码”

编程入门 行业动态 更新时间:2024-10-08 22:48:47
本文介绍了导致错误的原因是“无法从已释放的脚本执行代码”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我以为我之前找到了解决方案(参见我的博客):

I thought I'd found the solution a while ago (see my blog):

如果你得到了JavaScript(或者应该是JScript)错误无法从释放的脚本执行代码 - 尝试移动头部中的任何元标记,以便它们位于脚本标记之前。

If you ever get the JavaScript (or should that be JScript) error "Can't execute code from a freed script" - try moving any meta tags in the head so that they're before your script tags.

...但根据最新的博客评论之一,我建议的修复可能不适用于所有人。我认为打开StackOverflow社区会很好....

...but based on one of the most recent blog comments, the fix I suggested may not work for everyone. I thought this would be a good one to open up to the StackOverflow community....

导致错误的原因是无法从释放的脚本中执行代码和什么是解决方案/解决方法?

What causes the error "Can't execute code from a freed script" and what are the solutions/workarounds?

推荐答案

听起来你遇到了一些标签处理方式的错误/问题或者您对试图执行方法的已发布对象有引用。

It sounds like you've hit a bug/problem in the way some tags are handled or that you have references to released objects on which you are trying to execute methods.

首先我移动任何< meta> 标签之前的任何< script> 标签这里和其他许多地方。

First I'd move any <meta> tags before any <script> tags as suggested here and numerous other places.

然后检查你是否有讨论的页面/安全问题此处。

Then check to see if you have page/security issues discussed here.

更多推荐

导致错误的原因是“无法从已释放的脚本执行代码”

本文发布于:2023-11-09 07:58:45,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1571805.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:脚本   错误   原因   代码

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!