https://www.bestqa.net/sr/bestqa_util_base64
如果有人需要可以用,这个工具本身没啥特殊的地方。
有没有人需要类似的
输入 加个函数 然后得到一个输出的快速搭建的平台。
背后的代码:
func: encode
code: {{{
function encode(params) {
if (params.length < 2) return "";
let raw_str = params[0];
if (!raw_str) return "";
let is_encode = params[1];
if (is_encode) {
return btoa(raw_str);
} else {
return atob(raw_str);
}
}
}}}
# yes or no text
2. 编码或者解码?
type: boolean
titleLocation: none
labelTrue: 编码
labelFalse: 解码
1. 字符串
type: text
textUpdateMode: onTyping
3. 结果
type: expr
expr: encode({Q1},{Q2})