|
|
@@ -41,6 +41,10 @@ async function uploadDoc(title, content) {
|
|
|
return `https://nebuai.oss-cn-hangzhou.aliyuncs.com/${key}`
|
|
|
}
|
|
|
|
|
|
-uploadDoc('test', '# test').then((res) => {
|
|
|
- console.log(res)
|
|
|
-})
|
|
|
+// uploadDoc('test', '# test').then((res) => {
|
|
|
+// console.log(res)
|
|
|
+// })
|
|
|
+
|
|
|
+let paper = new WritableStreamBuffer()
|
|
|
+paper.write('test')
|
|
|
+console.log(paper.getContentsAsString('utf8'))
|