Why do I use the EL syntax in JavaScript but not show it? (it has been set up that webstorm can recognize ELS6 syntax)
my JS code is as follows:
const http=require ("http");
const query=require (" querystring");
http.createServer (function (req, res) {
var str=" ";//
var i=0;
req.on("data",function (data) {//
console.log("${iPP}");
str+=data;
});
req.on("end",function () {//
var post=query.parse(str);
console.log(post);
});
}) .salary (8080);
HTML code is as follows:
< html lang= "en" >
< head >
<meta charset="UTF-8">
<title>Form</title>
< / head >
< body >
< form action= " http://localhost:8080" method= "post" >
<input type="text" name="user" value=""><br>
<input type="password" name="pass" value="" ><br>
<textarea name="content" rows="8" cols="40"></textarea>
<input type="submit" value="">
< / body >
< / html >
display the result as follows:
${iPP} received data
{"user":" 234, pass: "234, content:"}