用Scala实现简单的Web和API服务器(33)

messageList

),

hr,

div(id := "errorDiv", color.red),

form(onsubmit := "submitForm; return false")(

input(

`type`:= "text",

id := "nameInput",

placeholder := "User name",

width := "20%"

),

input(

`type`:= "text",

id := "msgInput",

placeholder := "Please write a message!",

width := "60%"

),

input(`type`:= "submit", width := "20%")

)

推荐阅读