LuaFileSystem学习心得

时间:2023-03-09 16:55:58
LuaFileSystem学习心得

LuaFileSystem(简称lfs)是一个用于lua进行文件訪问的库,和Lua版本号同步。且是跨平台的,在为lua安装lfs之前须要先安装luarocks,

luarocks是一个用于安装lua库的软件,是独立于lua的,使用它能够在线安装一些lua的库,就比方lfs。

官网地址:

https://keplerproject.github.io/luafilesystem/manual.html#touch

自己写的測试样例在:

https://github.com/yhhwatl/lua/blob/master/lfsTests.lua

$(function () {
$('pre.prettyprint code').each(function () {
var lines = $(this).text().split('\n').length;
var $numbering = $('

    ').addClass('pre-numbering').hide();
    $(this).addClass('has-numbering').parent().append($numbering);
    for (i = 1; i ').text(i));
    };
    $numbering.fadeIn(1700);
    });
    });