基础
脚本 (Scripting)
脚本段落 (Script Section)
[Script]
script1 = type=http-response,pattern=^http://www.example.com/test,script-path=test.js,max-size=16384,debug=true
script2 = type=cron,cronexp="* * * * *",script-path=fired.js
script3 = type=http-request,pattern=^http://httpbin.org,script-path=http-request.js,max-size=16384,debug=true,requires-body=true
script4 = type=dns,script-path=dns.js,debug=true基本限制 (Basic Constraints)
性能 (Performances)
公共 API (Public API)
基本信息
持久化存储 (Persistent Store)
控制 Surge
$httpClient
实用工具 (Utilities)
手动触发 (Manually Trigger)
脚本引擎 (Script Engine) iOS 5.9.0+ Mac 5.5.0+
JavaScriptCore (engine=jsc)
WebView (engine=webview)
使用建议
配置方法
引擎可用性
最后更新于
这有帮助吗?