第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

提交表單和執(zhí)行js

提交表單和執(zhí)行js

Will_木 2017-05-07 09:21:40
<%--?? ? Document ? : index? ? Created on : 2017-4-29, 8:42:26? ? Author ? ? : MinguVan--%><%@page import="my.servlet.CheckServlet"%><%@page import="my.servlet.CreateServlet"%><%@page contentType="text/html" pageEncoding="UTF-8"%><!DOCTYPE html><html>? ? <head>? ? ? ? <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">? ? ? ? <title>隨機數(shù)小游戲</title>? ? ? ? <script type="text/javascript">? ? ? ? ? ? var pathName = document.location.pathname;? ? ? ? ? ? var index = pathName.substr(1).indexOf("/");? ? ? ? ? ? var app = pathName.substr(0, index + 1);? ? ? ? ? ? var xmlhttp;? ? ? ? ? ? function load(url, func) {? ? ? ? ? ? ? ? if (window.XMLHttpRequest) {? ? ? ? ? ? ? ? ? ? xmlhttp = new XMLHttpRequest();? ? ? ? ? ? ? ? } else {? ? ? ? ? ? ? ? ? ? xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");? ? ? ? ? ? ? ? }? ? ? ? ? ? ? ? xmlhttp.onreadystatechange = func;? ? ? ? ? ? ? ? xmlhttp.open("GET", url, true);? ? ? ? ? ? ? ? xmlhttp.send();? ? ? ? ? ? }? ? ? ? ? ? function check(number) {? ? ? ? ? ? ? ? load(app + "/checknumber?num=" + number, function () {? ? ? ? ? ? ? ? ? ? if (xmlhttp.readyState === 4 && xmlhttp.status === 200) {? ? ? ? ? ? ? ? ? ? ? ? hintdiv = document.getElementById("hint");? ? ? ? ? ? ? ? ? ? ? ? hintcontent = xmlhttp.responseText;? ? ? ? ? ? ? ? ? ? ? ? hintdiv.innerHTML = hintcontent;? ? ? ? ? ? ? ? ? ? }? ? ? ? ? ? ? ? });? ? ? ? ? ? }? ? ? ? ? ? function showup() {? ? ? ? ? ? ? ? if (document.getElementById("show").style.display === "none") {? ? ? ? ? ? ? ? ? ? document.getElementById("show").style.display = "";? ? ? ? ? ? ? ? }? ? ? ? ? ? }? ? ? ? </script>? ? ? ? <style>? ? ? ? </style>? ? </head>? ? <body>? ? ? ? <h1>游戲會隨機生成0-9之間的整數(shù),你有三次機會去猜中它!</h1>? ? ? ? <form method="get" action="<%=request.getContextPath()%>/my.servlet/CreateServlet" >? ? ? ? ? ? <table>? ? ? ? ? ? ? ? <tr>? ? ? ? ? ? ? ? ? ? <td>當前戰(zhàn)績</td>? ? ? ? ? ? ? ? ? ? <td>成功次數(shù):<%=CheckServlet.success%></td>? ? ? ? ? ? ? ? ? ? <td>總計:<%=CreateServlet.total%></td>? ? ? ? ? ? ? ? ? ? <td><input type="submit" value="開始新數(shù)字" onclick="showup()"/></td>? ? ? ? ? ? ? ? </tr>? ? ? ? ? ? ? ? <tr id="show" style="display:none">?? ? ? ? ? ? ? ? ? ? <td colspan="2"><input type="text" name="number" id="N" /></td>?? ? ? ? ? ? ? ? ? ? <td><input type="button" value="猜" ?onclick="check(N.value)"/></td>? ? ? ? ? ? ? ? ? ? <td><div id="hint">還有【3】次機會!</div></td>?? ? ? ? ? ? ? ? </tr> ?? ? ? ? ? ? </table>? ? ? ? </form>? ? ? ??? ? </body></html>在點擊“開始新數(shù)字”時,希望顯示出隱藏的部分,但是每次剛顯示又隱藏了,怎么解決?
查看完整描述

2 回答

?
qq_nullpointere_6

TA貢獻10條經(jīng)驗 獲得超12個贊

你的地址怎么能這樣寫。。action 中的是什么沒看懂


查看完整回答
反對 回復 2017-06-05
  • 2 回答
  • 0 關注
  • 1928 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網(wǎng)微信公眾號