HTML和Lua的初学者问题

我有一个在 Linux 设备上运行的 Lua 程序。我通过一个 HTML 页面访问它。我的问题是这个程序没有一行注释,所以我正在尝试弄清楚它是如何工作的。

    <td><span class="menu"><a href="channel/<%= num %>">edit</a><%
            if channel.enabled then
            %><a href="channel/<%= num %>?disable=true">disable</a>

不深入代码,我的问题是 ?disable=true。谁应该理解它?<%%> 之间的代码是 Lua 代码,我对它很满意。

点赞
用户1479549
用户1479549

下面是翻译后保留 markdown 格式的文本:

The HTML code you show only display a link which contains either edit or disable.

所展示的 HTML 代码仅展示包含 editdisable 其中之一的链接。

The link opens an html/php page which is channel/<%=num%> when the label is edit and channel/<%=num%>?disable=true when the label is disable.

当标签为 edit 时,该链接会打开一个名为 channel/<%=num%> 的 HTML/PHP 页面;当标签为 disable 时,该链接会打开一个名为 channel/<%=num%>?disable=true 的 HTML/PHP 页面。

I guess <%=num%> is replaced by a number which could be anything, an output/input number or whatever a linux device can use or drive.

我猜测 <%=num%> 会被替换为一个数字,可以是任何输出/输入数字或者是 Linux 设备可以使用或驱动的东西。

You didn't make yourself very clear.

你的表述不是很清晰。

2014-12-01 13:18:33