Archives
Trending
Support
Login
clear text
XML
Django
JavaScript
MATLAB
C
C++
C#
Python
SQL
Shell
Bash
Markdown
YAML
JSON
HTML
CSS
PHP
Java
Ruby
Go
Rust
Swift
Kotlin
Arduino
TypeScript
Perl
Autohotkey
Lua
SQF
R
Scala
Haskell
Groovy
Dart
Clojure
VB.NET
Objective-C
PowerShell
Bash
CoffeeScript
Verilog
/* 打後端Web API */ // TODO: 等等再去重寫 async function getTableHeader() { let tableHeader = []; try { const response = await fetch("https://www.oooDomain.com:4000/tableHeader", { method: "GET", }); const articles = await response.json(); tableHeader = Array.from(articles); } catch (error) { console.log("error ", error); } return tableHeader; }; async function getTableBody() { let tableBody = []; try { const response = await fetch("https://www.oooDomain.com:4000/tableBody", { method: "GET", }); const articles = await response.json(); tableBody = Array.from(articles); } catch (error) { console.log("error ", error); } return tableBody; }; export default { getTableHeader, getTableBody };
Mark as private (unlisted)
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year
everlasting (like CCCP)