我使用onscroll调用我的函数来播放视频,但我希望它只触发该函数一次。我甚至为它设置了条件,所以它只会发生一次,但它不起作用。有什么想法吗?(修正了三个=) 我还会在我的临时站点上加载新的页面时获得play() failed because the user didn't interact with the document first。
接下来,我计算每个div中显示的属性数量。现在,在我的html页面中,我有一个变量properties_count,它具有从我的数据库中获取的所有属性的计数。我想在if语句中比较numItems和properties_count,如下所示: # some function to load more propertie