fed icon indicating copy to clipboard operation
fed copied to clipboard

【作业贴】移应171 03 猜数字实现

Open mejiwef opened this issue 6 years ago • 45 comments

请大家在本贴实现猜数字效果,来达到熟悉JS运算符和条件语句、循环语句的实现。 要求:

把自己的效果传到自己github账号,本在本贴回复两位学号和姓名,如00 王海庆 链接 尽量体现自己最高水平 下次上课前交 做得好的有神秘大奖

mejiwef avatar Sep 14 '18 02:09 mejiwef

20-张天https://bentuotuo.github.io/web/index.html

FISHTIANTIAN avatar Sep 14 '18 02:09 FISHTIANTIAN

49 陈佳明 https://vivfeng.github.io/homework/2018/09/14/index.html

mejiwef avatar Sep 14 '18 02:09 mejiwef

猜数字游戏

		<h2 class="title">猜数字游戏</h2>
		<div class="C">
			<input type="number" placeholder="0110整数,3次机会" />
			<input type="button" id="Guess" value="猜数字" />
			
		</div>
		<div class="tip">
			<p>剩下次数:3</p>
			<p>猜测历史</p>
			<p id="tipText"></p>
		</div>
	</div>
	<script type="text/javascript">
		var targetNum=parserInt(Math.random()*11);
		console.log(targetNum);
		var guseeTimes=3;
		var oNumInput=document.getElementById("numInput");
		var oBtnGuess=document.getElementById("Guess");
		var oTipText=document.getElementById("tipText");
		function guess(){
			
			if(oNumInput.value>targetNum){
				oTipText.innerHTML="这次猜测的X,有点偏大"
				ONumInput.value=""
				oNumInput.focus
			}else{
				
			}
		}
		
	</script>
</body>

nixiaoliang avatar Sep 14 '18 03:09 nixiaoliang

11 王志文https://doinbbb.github.io/%E7%8C%9C%E6%95%B0%E5%AD%97.html

Doinbbb avatar Sep 14 '18 03:09 Doinbbb

32陈志伟https://chenzhiwei111.github.io/czw/index.html

chenzhiwei111 avatar Sep 14 '18 03:09 chenzhiwei111

38---楼思宏https://fengxiaozaici.github.io/feng/enjj/index.html

fengxiaozaici avatar Sep 14 '18 03:09 fengxiaozaici

07-张舒鹏https://zq0951.github.io/猜数字.html

zq0951 avatar Sep 14 '18 03:09 zq0951

29李佳奇https://ljq6666.github.io/qqq/index.html

ljq6666 avatar Sep 14 '18 03:09 ljq6666

40-姚海南https://dameinan.github.io/hello/rng.html

dameinan avatar Sep 14 '18 03:09 dameinan

48曾日昌https://zengrichang.github.io/sada/index.html

zengrichang avatar Sep 14 '18 03:09 zengrichang

44傅化韩 https://wode98k.github.io/number/xixixxx.html

wode98k avatar Sep 14 '18 03:09 wode98k

03 楼競恒 https://15968191839.github.io/9.14/index.html

15968191839 avatar Sep 14 '18 03:09 15968191839

46林文青https://piggss.github.io/cshuz/index.html

LINWQG avatar Sep 14 '18 03:09 LINWQG

18诸葛文瀚 https://zgwh.github.io/caishuzi/index.html

zgwh avatar Sep 14 '18 03:09 zgwh

42 贺郑鹏https://yufendian.github.io/Yufendian01/index.html

Yufendian avatar Sep 14 '18 03:09 Yufendian

39.边逸婷https://yiting63.github.io/shuzi.html

yiting63 avatar Sep 14 '18 03:09 yiting63

25张明https://zptcmt.github.io/18.9-19.1/18.9.14/guessNumber.html

zptcmt avatar Sep 14 '18 03:09 zptcmt

19 盛佳康https://sjkkkk.github.io/caishuzi/caishuzi.html

sjkkkk avatar Sep 14 '18 03:09 sjkkkk

17叶靖 https://lasacacias.github.io/guessnumber.html

lasacacias avatar Sep 14 '18 03:09 lasacacias

36 裘凯炳 http://qiukaibing.github.io/qqq/index.html

qiukaibing avatar Sep 14 '18 03:09 qiukaibing

10 陈昕https://jeffchenxin.github.io/Cx-js.github.io/three/index.html

jeffchenxin avatar Sep 14 '18 03:09 jeffchenxin

05-赵琛https://zzzzzzzzzc.github.io/zc.html

zzzzzzzzzc avatar Sep 14 '18 04:09 zzzzzzzzzc

27 戴甄 https://diviner1121.github.io/Dz/csz.html

diviner1121 avatar Sep 14 '18 04:09 diviner1121

37 鲍华明https://bhm37.github.io/czyx/index.html

bhm37 avatar Sep 14 '18 04:09 bhm37

08-严振焘https://yztttttt.github.io/yzt.html

Yztttttt avatar Sep 14 '18 04:09 Yztttttt

04周皓天https://1647502335.github.io/yx.html

1647502335 avatar Sep 14 '18 04:09 1647502335

33张铭泳https://20170608133.github.io/DKD/

20170608133 avatar Sep 14 '18 05:09 20170608133

22朱浜浜https://zbb1299316394.github.io/%E6%B8%B8%E6%88%8F/index.html

zbb1299316394 avatar Sep 14 '18 05:09 zbb1299316394

30邵丽君https://weirdo1998.github.io/猜数字/index.html

weirdo1998 avatar Sep 14 '18 05:09 weirdo1998

13王露露https://377a61.github.io/%E7%8C%9C%E6%95%B0%E5%AD%97%E6%B8%B8%E6%88%8F.html

377a61 avatar Sep 14 '18 06:09 377a61

24-宋佳军 https://songdadacarry.github.io/sss/index.html

songdadacarry avatar Sep 14 '18 06:09 songdadacarry