可以用一个内容处理程序来处理这两种情况,但每次解析器调用处理程序时,都需要进行一次检查,以查看到底是哪一种情况需要被处理。
You can have one content handler that handles both cases, but this requires a check to see which case needs to be handled each time the parser invokes the handler.
read _ file函数使用stat函数调用检查文件的修改时间,只有在上一次装载之后修改了文件的情况下,它才重新读取文件的内容。
The read_file function USES the stat function call to check the modification time of the file, only re-reading the contents of the file if it changed since the last time the file was loaded.
在某些情况下,可能希望更仔细地检查资产,例如查看它的关系或内容。
In some cases, you might want to review an asset more closely to examine its relationships or its content for example.
应用推荐