<body>
<script type="text/javascript">
var userEmail=prompt("Please enter your email address:","");
document.write(userEmail.indexOf("@"));
</script>
</body>
转载于:https://www.cnblogs.com/vonk/p/3966541.html
<body>
<script type="text/javascript">
var userEmail=prompt("Please enter your email address:","");
document.write(userEmail.indexOf("@"));
</script>
</body>
转载于:https://www.cnblogs.com/vonk/p/3966541.html