Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/wix/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在cloudant仪表板中更轻松地切换“包含文档”?_Cloudant - Fatal编程技术网

如何在cloudant仪表板中更轻松地切换“包含文档”?

如何在cloudant仪表板中更轻松地切换“包含文档”?,cloudant,Cloudant,目前,只需点击几下即可在cloudant仪表板中切换“include_docs”标志。如果你经常这样做,可能会有点费时 如何加快这个过程?我创建了一个javascript: 当我想打开或关闭“include_docs”时,我只需单击书签工具栏中的此书签即可 注意:我只在firefox上测试过这个 javascript:(function(){ if(document.location.toString().contains('include_docs=true')){ docu

目前,只需点击几下即可在cloudant仪表板中切换“include_docs”标志。如果你经常这样做,可能会有点费时

如何加快这个过程?

我创建了一个javascript:

当我想打开或关闭“include_docs”时,我只需单击书签工具栏中的此书签即可

注意:我只在firefox上测试过这个

javascript:(function(){
   if(document.location.toString().contains('include_docs=true')){
      document.location=document.location.toString().replace('include_docs=true', '')
   } else {
      if (document.location.toString.contains('?') {
          document.location+='&include_docs=true'
      } else {
          document.location+='?include_docs=true'
      }
   }
}())