导致错误的原因是“无法从已释放的脚本执行代码” [英] What causes the error "Can't execute code from a freed script"

查看:314
本文介绍了导致错误的原因是“无法从已释放的脚本执行代码”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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.

这篇关于导致错误的原因是“无法从已释放的脚本执行代码”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆