From 84fce0e39bc298c9ec4e69a81a855e0207e0b968 Mon Sep 17 00:00:00 2001 From: neil_tsai Date: Thu, 27 May 2021 18:12:04 +0800 Subject: Getting started with Svelte (zh-TW translation) (part of "The code so far" & "Summary") --- .../svelte_getting_started/index.html | 32 +++++++++++----------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'files/zh-tw') diff --git a/files/zh-tw/learn/tools_and_testing/client-side_javascript_frameworks/svelte_getting_started/index.html b/files/zh-tw/learn/tools_and_testing/client-side_javascript_frameworks/svelte_getting_started/index.html index b66c784a10..1780a0ee53 100644 --- a/files/zh-tw/learn/tools_and_testing/client-side_javascript_frameworks/svelte_getting_started/index.html +++ b/files/zh-tw/learn/tools_and_testing/client-side_javascript_frameworks/svelte_getting_started/index.html @@ -453,44 +453,44 @@ npm run dev

注意:不知何時REPL變得沒辦法適當地處理資料夾名稱。假如你是使用REPL來跟著教學系列,只需要將所有你的元件建立在根目錄即可。接著當你看到程式碼中的路徑時,舉例來說如果是import Todos from './components/Todos.svelte',只需要將它換成類似如import Todos from './Todos.svelte'即可。

-

The code so far

+

到目前為止的程式碼

Git

-

Clone the github repo (if you haven't already done it) with:

+

複製github儲存庫(假如你還沒完成)如下:

git clone https://github.com/opensas/mdn-svelte-tutorial.git
-

Then to get to the current app state, run

+

接著取得當前應用程式狀態,執行如下:

cd mdn-svelte-tutorial/01-getting-started
-

Or directly download the folder's content:

+

或直接下載資料夾內容如下:

npx degit opensas/mdn-svelte-tutorial/01-getting-started
-

Remember to run npm install && npm run dev to start your app in development mode.

+

記得執行npm install && npm run dev以開發模式來運行你的應用程式。

REPL

-

To code along with us using the REPL, start at

+

為了使用REPL和我們一起撰寫程式碼,點擊如下連結:

https://svelte.dev/repl/fc68b4f059d34b9c84fa042d1cce586c?version=3.23.2

-

Summary

+

總結

-

This brings us to the end of our initial look at Svelte, including how to install it locally, create a starter app, and how the basics work. In the next article we'll start building our first proper application — a todo list. Before we do that, however, let's recap some of the things we’ve learned.

+

這篇文章初步帶我們了解了Svelte的來龍去脈,包含如何安裝本地環境,建構起始應用程式以及它是如何協同工作。下一篇文章將開始建構我們第一個應用程式——一個待辦清單。在我們開始做之前,讓我們先回顧一下已經學到的那些東西。

-

In Svelte:

+

在Svelte當中:

{{PreviousMenuNext("Learn/Tools_and_testing/Client-side_JavaScript_frameworks/Vue_resources","Learn/Tools_and_testing/Client-side_JavaScript_frameworks/Svelte_todo_list_beginning", "Learn/Tools_and_testing/Client-side_JavaScript_frameworks")}}

-- cgit v1.2.3-54-g00ecf