Skip to content

jawa560/node_hello_keyin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

功能說明

建立一個輸入頁面,當送出時,不觸發更新頁面,而使用 JavaScript 的 http request 的功能,背景傳送至伺服器,並用 listen 方法收到回傳的DATA後,再動態更新指定DIV裡的文字。

建立方式

用 VS CODE 建立如 repo 裡的檔案即可。

操作方式

如下圖,在輸入框輸入文字,按 submit 後,即可看到伺服器回傳的原輸入文字。

image

About

[NODE] A simple Sample show how post data and show the Server response on page without refresh

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors