html页面嵌入javascript代码
-
html直接写js怎么实现?在html中直接调用js的方法
document.getElementById(‘contactForm’).addEventListener(‘submit’, function(e) { const email = document.getElementById(’email’).value; const regex = /^[^\s……
document.getElementById(‘contactForm’).addEventListener(‘submit’, function(e) { const email = document.getElementById(’email’).value; const regex = /^[^\s……