-1
如何在javascript函数中传递ejs数组?将ejs数组传递给javascript函数
function validate(array) {
alert("Here");
var ok = false;
var emailva = document.getElementById("email").value;
var passva = document.getElementById("password").value;
return ok;
}
林通过我的EJS命名为items
阵列它是这样的
<form role="form" action="/index-loggedin" method="post" onsubmit=" return validate("<%= items %>")" >
任何帮助吗?