如何防止注射?(jQuery & ajax)
<input type="text" id="name" name="name" />
<input type="text" id="email" name="email" />
var name = $("#name").val();
var mail = $("#email").val();
输出:
$("#logga").html('Name: <b>' + name + ' </b>Comment:<b> ' + comment + '</b>');