$app/server
import { function read(asset: string): Response
Read the contents of an imported asset from the filesystem
read } from '$app/server';
read
從檔案系統讀取導入的資源內容
import { function read(asset: string): Response
Read the contents of an imported asset from the filesystem
read } from '$app/server';
import const somefile: string
somefile from './somefile.txt';
const const asset: Response
asset = function read(asset: string): Response
Read the contents of an imported asset from the filesystem
read(const somefile: string
somefile);
const const text: string
text = await const asset: Response
asset.Body.text(): Promise<string>
text();
function read(asset: string): Response;
上一頁 下一頁