Lua最新版中,Loadstring函数如何改写为长尾词?
- 内容介绍
- 文章标签
- 相关推荐
本文共计212个文字,预计阅读时间需要1分钟。
我更新了Lua从5.1到5.3.2,但我的脚本无法工作,导致尝试调用nil值(全局的`loadstring`)。它们是否应该使用新函数替换它?
在Lua的官方文档中可以找到功能描述:[Lua函数](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
load取代.
从Lua 5.2 reference manual开始:
Function
loadstringis deprecated. Useloadinstead; it now accepts string arguments and are exactly equivalent toloadstring.
本文共计212个文字,预计阅读时间需要1分钟。
我更新了Lua从5.1到5.3.2,但我的脚本无法工作,导致尝试调用nil值(全局的`loadstring`)。它们是否应该使用新函数替换它?
在Lua的官方文档中可以找到功能描述:[Lua函数](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
load取代.
从Lua 5.2 reference manual开始:
Function
loadstringis deprecated. Useloadinstead; it now accepts string arguments and are exactly equivalent toloadstring.

