- 博客(15)
- 资源 (1)
- 收藏
- 关注
原创 js中,关于使用id和document.getElementById()方法获取dom元素的区别
第一种直接使用id获取dom元素的方法,只能在window这个全局变量中没有以此为名字的属性时才会生效但第二种方法却不会遇到这种问题
2018-05-30 09:29:16 7965
原创 切图中js立即执行函数的引用
如图所示,这是个轮播图,但我没有采用滑的方式显示,我设置了一个定时器,每隔3秒钟切换一次图片,在图片的右下角,有一个说明框,我给说明框里的li标签加了mouseover事件,当鼠标移入时,显示对应图片,并相应文字样式发生变化,为了实现这个功能,我利用立即执行函数,每执行一次都创造一个私有空间,使得每个qie函数都有自己自己相对应的i值,这里要注意qie函数的申明要在立即执行函数里面,这样在每次执行...
2018-05-25 16:44:58 256
原创 from标签使用onsubmit事件进行预判断,满足条件在进行提交操作
页面中的评论提交表单,这里要注意当onsubmit为真是才会提交<form class="comment_form" method="post" action="/HUPU/Showtiezi" onsubmit="return checkSubmit()"> <textarea placeholder="期待你的神评论..." name="p
2018-05-21 16:07:58 1170
原创 SQL异常:Operation not allowed after ResultSet closed
一个Statement对象最好对应一个ResultSet对象,否则可能会出现上述错误
2018-05-19 11:02:55 10462 6
原创 C - Function
The shorter, the simpler. With this problem, you should be convinced of this truth. You are given an array AA of NN postive integers, and MM queries in the form (l,r)(l,r). A function F(l,r) (1≤l...
2018-05-10 23:33:35 276
原创 B - Ball
Jenny likes balls. He has some balls and he wants to arrange them in a row on the table. Each of those balls can be one of three possible colors: red, yellow, or blue. More precisely, Jenny has R red ...
2018-05-10 21:00:40 238
原创 B. Marlin
B. Marlintime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThe city of Fishtopia can be imagined as a grid of 44 rows and an odd number of columns. I...
2018-05-09 13:49:47 519 3
原创 Frogger
ZOJ Problem Set - 1942FroggerTime Limit: 2 Seconds Memory Limit: 65536 KBFreddy Frog is sitting on a stone in the middle of a lake. Suddenly he notices Fiona Frog who is sitting on another stone....
2018-05-08 21:51:50 218
原创 ZOJ Problem Set - 2102 Tables
ZOJ Problem Set - 2102TablesTime Limit: 2 Seconds Memory Limit: 65536 KBGranny likes dropping around in the neighborhood. She is rather aged so she always carries a stick to assist walking. When ...
2018-05-08 14:44:29 167
原创 D. Colorful Points
D. Colorful Pointstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given a set of points on a straight line. Each point has a color assigne...
2018-05-06 19:00:36 219
原创 A-长方体
链接:https://www.nowcoder.com/acm/contest/109/A来源:牛客网长方体时间限制:C/C++ 1秒,其他语言2秒空间限制:C/C++ 32768K,其他语言65536K 64bit IO Format: %lld题目描述给出共享长方体一个顶点的三个面的面积,求它十二条边的边长和。输入描述:一行三个整数a, b, c表示面积(1 <= a, b, c <...
2018-05-05 22:43:44 1408
原创 K - Mahjong Sorting
DreamGrid has just found a set of Mahjong with suited tiles and a White Dragon tile in his pocket. Each suited tile has a suit (Character, Bamboo or Dot) and a rank (ranging from 1 to ), and there is...
2018-05-04 19:07:03 318
原创 F - Now Loading!!!
Now Loading!!!Time Limit: 1 Second Memory Limit: 131072 KBDreamGrid has integers . DreamGrid also has queries, and each time he would like to know the value offor a given number , where , .Inpu...
2018-05-02 22:59:50 587
原创 A - Peak (第十五届浙江省程序设计竞赛)
A sequence of integers is called a peak, if and only if there exists exactly one integer such that , and for all , and for all .Given an integer sequence, please tell us if it's a peak or not.Inp...
2018-05-01 23:29:24 1755
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人