Tag:Read-only attribute

  • How to set table as read-only property in Lua

    Time:2021-10-20

    Some read-only tables in the project are easy to be rewritten by mistake, so it is decided to attach these tables in a non online environmentRead only attribute, it is convenient to throw Lua errors in case of misrewriting. The final version code is as follows: –[[——————————————————————————  -**   Set table read-only   Lua will […]

  • Set input as read-only through disabled and readonly

    Time:2020-3-18

    There are two ways to achieve the read-only effect of input: disabled and readonly. Naturally, the two effects are read only and cannot be edited, but they are very different. Disabled indicates that the input is invalid and its value will not be passed to any program, such as ASP, PHP, etc.Readonly is only uneditable […]