【问题标题】:Search for text in Jasonette在 Jasonette 中搜索文本
【发布时间】:2020-05-03 11:39:08
【问题描述】:

如果我的计算机上没有 HTML 文件,有没有办法在 Jasonette 的网站上搜索文本?也许通过 view-source:[URL] 直接在网站上?我在 Google 上没有找到关于这个主题的任何信息。我只有一个网络容器,现在我正在尝试使用 if 循环从网站搜索文本。 比如:

if [text] is on [website] {
  do this
}

【问题讨论】:

    标签: json jasonette


    【解决方案1】:

    试试这个:

    {
    "{{#if $jason.url.indexOf('foto') !== -1  }}": {
    "type": "$util.share",
    "options": {
    "items": [{
    "type": "image",
    "url": "{{$jason.url}}"
    },{
    "type": "text",
    "text": "herbal57online"
    }]}
    }
    },
    

    它将过滤url,如果url包含单词“foto”它将运行代码

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-12-12
      • 2017-10-04
      • 2023-03-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多