<body>
<input id="Text1" type="text" />
<input id="Button1" type="button" value="button" onclick="Show()" />
<script type="text/javascript">
function Show() {
if (Text1.value == "") {
alert("å
容为空")
}
else {
alert("å
容æ¯ï¼" + Text1.value);
}
}
</script>
</body>
温馨提示:答案为网友推荐,仅供参考