因此,我在浏览Gmail iOS应用程序(2.0.1)时,看到了一些包含的html文件,例如calendar.html:

<h1>
<?cs #trans description Title for screen in welcome sequence describing the
ability to immediately act on calendar events. (Maximum characters: ~25) ?>
Instantly RSVP</h1>
<p>
<?cs #trans description
Reference to being able to receiving emails for calendar events and being able
to act on the events immediately.
(Maximum characters: ~100 depends on line breaks) ?>
Respond to Google Calendar invites right from the app.
</p>

我想知道是否有人知道?cs标签的用途。我确实尝试使用Google搜索,但是找不到任何东西。也许是Google内部的事情?任何信息都很好。我只是想了解iOS / Google编程风格。

最佳答案

<? … ?>是XML processing instruction。它们不是文档数据,而是用于基础XML引擎的。

XML引擎通常使用处理指令作为将控制流(<? if test="condition" ?>)和命令(<? echo "string" ?>)嵌入XML文档的方式。

在这里看起来cs是一种meta命令。 cs #trans description似乎是某种用户帮助的标签。

抱歉,它不能直接回答您的问题,但是更好地理解表格可能有助于您了解有关该函数的更多信息。

关于html - Gmail iOS App使用自定义html标签-有信息吗?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/15468224/

10-12 00:22
查看更多