Lua最新版Loadstring函数如何替换成其他函数?

更新于
2026-09-30 04:01:25
24阅读来源:SEO资讯
  • 内容介绍
  • 文章标签
  • 相关推荐

本文共计210个文字,预计阅读时间需要1分钟。

Lua最新版Loadstring函数如何替换成其他函数?

从Lua 5.1更新到5.3.2后,我的脚本无法正常工作,导致尝试调用nil值(全局的`loadstring`)。请问这些函数是否可以用新函数替换?

在[这里](https://www.lua.org/pil/8.)你可以找到相关功能,并测试它们。

我从lua 5.1更新到5.3.2,我的一个脚本无法工作导致尝试调用nil值(全局’loadstring’)那么,他们是否用新函数替换它?

在那里你可以找到功能www.lua.org/pil/8.html
在那里你可以测试它(不起作用)www.lua.org/cgi-bin/demo

从Lua 5.2开始,loadstring已被 load取代.

从Lua 5.2 reference manual开始:

Function loadstring is deprecated. Use load instead; it now accepts string arguments and are exactly equivalent to loadstring.

Lua最新版Loadstring函数如何替换成其他函数?

本文共计210个文字,预计阅读时间需要1分钟。

Lua最新版Loadstring函数如何替换成其他函数?

从Lua 5.1更新到5.3.2后,我的脚本无法正常工作,导致尝试调用nil值(全局的`loadstring`)。请问这些函数是否可以用新函数替换?

在[这里](https://www.lua.org/pil/8.)你可以找到相关功能,并测试它们。

我从lua 5.1更新到5.3.2,我的一个脚本无法工作导致尝试调用nil值(全局’loadstring’)那么,他们是否用新函数替换它?

在那里你可以找到功能www.lua.org/pil/8.html
在那里你可以测试它(不起作用)www.lua.org/cgi-bin/demo

从Lua 5.2开始,loadstring已被 load取代.

从Lua 5.2 reference manual开始:

Function loadstring is deprecated. Use load instead; it now accepts string arguments and are exactly equivalent to loadstring.

Lua最新版Loadstring函数如何替换成其他函数?