TGViewer
Chavy Scripts Chavy Scripts @chavyscripts · 10.2K subscribers
Post #75 11.8K
#BoxJs更新

> 本次更新主要面向开发者

1. setting 和 data 的 key 可以是表达式
如: @github.repo 意思是从持久化仓库中取 github 的值并 parse 成对象再赋值到 repo 属性
大概逻辑: JSON.parse($.getdata('github')).repo = 'xxx'
同理: @github.repo.xxx.xxx (允许多层读写)

2. 增加长文本控件 type='textarea' (类似 github 仓库监控监听可使用该控件)


#EnvJs更新

> 本次更新主要面向开发者

1. $.getdata 支持层级读写
1.1: $.getdata('github') 直接从持久化仓库获取 github 属性
1.2: $.getdata('@github.repo') => JSON.parse(github).repo
1.3: $.getdata('@github.repo.xxx') => JSON.parse(github).repo.xxx

2. $.setdata 同理
1.1 $.getdata('http://xxx', '@github.repo') 把值写入到 github.repo
  • ❤ 2
  • 👍 1
More from @chavyscripts
  1. Jul 15, 2026#Relay 1.0.1(build 13) What's New! - 支持纯JSON内容导入订阅(无需订阅 URL,某种程度上也算是匿名订阅) - 结合skill和纯JSON内…
  2. Apr 17, 2026macOS 新建文件夹
  3. Mar 27, 2026video post
  4. Mar 25, 2026全新 UI
  5. Mar 12, 2026让 AI 写了个 Scritable 的脚本看看 Claude 使用量 地址: https://github.com/gideonsenku/Scriptable/blob/mas…
  6. Feb 13, 2026同程旅行脚本 /** * * hostname = app.17u.cn * * # Surge * http-request ^https:\/\/app\.17u\.cn\/w…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →