简体   繁体   English

草地椅“存在”的方法?

[英]Lawnchair “exists” method?

I am trying to use lawnchair but the documentation on the site and github seem to say different things. 我正在尝试使用草地椅,但是站点和github上的文档似乎在说不同的话。 Currently I need to check if an entry exists, and if not create one. 目前,我需要检查是否存在一项,如果不存在,请创建一个。

However when I run lawnchair (not special parameters as I let it choose the adaptor for me) I just get told "exists" does not exist, however I am not sure if this is a problem in the documentation saying something used to exist or if it is a real bug. 但是,当我运行草地椅时(不是特殊参数,因为我让它为我选择了适配器),我只是被告知“存在”,但是我不确定这是否是文档中存在问题的内容或是否存在这是一个真正的错误。 I am using it within firefox at the moment while developing and works fine for everything else I have tried to do with it (other than it duplicates the entry when not using "new" initilizer. 目前,我正在开发中在firefox中使用它,并且在我尝试使用它所做的所有其他事情上都可以正常工作(除了在不使用“新”初始化器时它会重复该条目之外)。

Anyway is there a way to find out if an entry exists? 无论如何,有没有办法找出一个条目是否存在? be it an exists style method or a different callback from the get method? 是存在样式方法还是与get方法不同的回调?

我已经从github源码更新到最新版本,而不是该站点似乎可以修复DOM适配器中的现存方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM