duangsuse::Echo
https://github.com/duangsuse/alldreamwall #web #recommend 🌝 已经包装完好,各位路过的大佬们如果看着顺眼就点个赞吧...
马上再往上加功能,这次是支持 URL 参数定位 SID、UID、选择 page 和 rowsize、category
然后支持手动设置 cookie,开启关闭夜间模式
然后支持 基于字段的 JSON prettyprint comment 插件
然后支持插件,允许使用 AllDreamAPI DSL 创建更多功能
plugin foo
author buf
description 无用的插件
menuitem 你好世界 link 🌐
begin
cookie foo as bar
ask GET ?
ajax get https://foo.com data
url param :result
param foo as bar
success javascript
alert(dsl['body'])
end
end
snackbar :result
setlist 你好世界
end
然后支持手动设置 cookie,开启关闭夜间模式
然后支持 基于字段的 JSON prettyprint comment 插件
然后支持插件,允许使用 AllDreamAPI DSL 创建更多功能
plugin foo
author buf
description 无用的插件
menuitem 你好世界 link 🌐
begin
cookie foo as bar
ask GET ?
ajax get https://foo.com data
url param :result
param foo as bar
success javascript
alert(dsl['body'])
end
end
snackbar :result
setlist 你好世界
end
jsoncomment rule
for uid do |a|
"https://all-dream.com/rest/student/" + a
end
for id do |b|
//....
'hello'
end
end
然后可以在 pluin 里用 using rule 设置当前 JSON pp 插件🌚
反正用户操作不可能是并行的,也不用加锁什么的
for uid do |a|
"https://all-dream.com/rest/student/" + a
end
for id do |b|
//....
'hello'
end
end
然后可以在 pluin 里用 using rule 设置当前 JSON pp 插件🌚
反正用户操作不可能是并行的,也不用加锁什么的
duangsuse::Echo
https://gist.github.com/duangsuse/f576da3db8a7563130411d950f4110c1 第一个 AllDreamWall 脚本
我觉得在开始完成插件系统之前应该先修改一下 DreamScript — DS 必须使用基于缩进的语法,这样才不会出现
begin
ajax get https://foo.com
success
javascript
mdui.alert("Load finished")
begin解析错误的问题
alert Load end
end
begin
ajax get https://foo.com
success
javascript
mdui.alert("Load finished")
它要在传入的插件表上定义四个函数:
initialize, begin, urlhandle 和 jsoncomment
其中只有 begin 是必须的,因为插件必须有一个打开链接
jsoncomment 用于提供 JSON comment 生成功能,插件可以使用 setCommentEmitter() 来注册全局 JSON Comment 生成器
initialize, begin, urlhandle 和 jsoncomment
其中只有 begin 是必须的,因为插件必须有一个打开链接
jsoncomment 用于提供 JSON comment 生成功能,插件可以使用 setCommentEmitter() 来注册全局 JSON Comment 生成器
duangsuse::Echo
Photo
课堂总结:
1. 我知道了 printf 其实是 print format 的意思
2. 我知道了 MSVC 里居然有 system(str); 这个函数
3. 我知道了 Windows 里居然有 start 指令
4. 我知道了 ACM 是和图灵奖有关
🌚
我现在应该可以去参加 CS 八卦知识大赛了
1. 我知道了 printf 其实是 print format 的意思
2. 我知道了 MSVC 里居然有 system(str); 这个函数
3. 我知道了 Windows 里居然有 start 指令
4. 我知道了 ACM 是和图灵奖有关
🌚
我现在应该可以去参加 CS 八卦知识大赛了