<input><input type=button value=”test” onclick=”alert(/[W_]/.test(previousSibling.value) || !previousSibling.value?’失败’:’通过’)”> [Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]