摘要: break 通常用在循环语句和开关语句中,当break语句用于do-while、for、while循环语句中时,可使程序终止循环而执行循环后面的语句, 通常break语句总是与if语句联在一起,即满足条件时便跳出循环。 continue: continue语句的作用是跳过循环本中剩余的语句而强行执行 阅读全文
posted @ 2016-12-15 14:08 冲天小肥牛 阅读(137) 评论(0) 推荐(0) 编辑
摘要: Console.WriteLine("1土豆"); Console.WriteLine("2玉米"); Console.WriteLine("3小麦"); Console.WriteLine("4黄瓜"); Console.Write("请输入你选的:"); ... 阅读全文
posted @ 2016-12-15 13:58 冲天小肥牛 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 1、引用jquery 2、Html页面 <div> <canvas id="canvas" style="cursor: pointer; height: 35px; width: 100px; top: 10px; position: relative;"></canvas> <input typ 阅读全文
posted @ 2016-12-15 08:55 冲天小肥牛 阅读(142) 评论(0) 推荐(0) 编辑