只需建立一個ejs變數並將script標記內的值分配給 var getTest 例如: var getTest = <%= test %>;. 2) You can't pass an javascript variable value to a ejs variable.
確定! 回上一頁