You need to set a flag to let the code know whether you are reading the title element within the entry.
需要设置一个标志让代码知道读取的是不是条目内的title元素。
The other solution is that you can set a flag field somewhere else in the database to notify that data has been updated safely.
另一个解决方法是,你可以在数据库中设置一个标志字段别处去通知数据已更新安全。
The second solution (which is much worse) is to catch the "item not in collection" error and then set a flag to say the item does not exist.
第二个解决方案(这是更坏)是捕捉“项目不是在收集”错误,然后设置一个标志,表示该项目不存在。
应用推荐