最近项目中用了很多的表单提交,发现input、button、submit甚至回车键都可以引发表单提交,下面将分别验证他们在使用中的区别。 1.input[type=submit] 我们直接来看例子: 代码如下: 其中点击按钮后的url变为?name=222222222。 其中有些值得注意的细节: 设 ...
分类:
其他好文 时间:
2017-09-22 12:07:46
阅读次数:
169
版权声明:本文为博主原创文章,未经博主允许不得转载。 Lumen的核心类Application引用了专门用于异常处理的RegistersExceptionHandlers, 直接来看一下这个引用里的方法RegistersExceptionHandlers.php 以上就是封装用于$app的几个异常处 ...
分类:
其他好文 时间:
2017-09-22 11:53:26
阅读次数:
438
Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties: Integers in each row are sorted f ...
分类:
其他好文 时间:
2017-09-22 10:11:40
阅读次数:
180
The Bitlandians are quite weird people. They have very peculiar customs. As is customary, Uncle J. wants to have n eggs painted for Bitruz (an ancient ...
分类:
其他好文 时间:
2017-09-21 20:53:37
阅读次数:
141
Trees咏树by Alfred Joyce Kilmer作者:阿尔弗雷德·乔伊斯?基尔默I think that I shall never seeA poem lovely as a tree.我想我永远都不可能看见像一棵树那样美好的诗篇A tree whose hungry mouth is ...
分类:
其他好文 时间:
2017-09-21 19:30:02
阅读次数:
196
loadmore 加载更多(分页加载) 当用户打开一个页面时,假设后台数据量庞大时,一次性地返回所有数据给客户端,页面的打开速度就会有所下降,而且用户只看上面的内容而不需要看后面的内容时,也浪费用户流量,基于优化的角度来考虑,后台不要一次性返回所有数据,当用户有需要再往下翻的时候,再加载更加数据出来 ...
分类:
微信 时间:
2017-09-21 18:03:14
阅读次数:
356
仔细研究了下,发现sql server里面的explicit transaction(显示事务)还是有点复杂的。以下是有些总结: Commit transaction 会提交所有嵌套的transaction修改。但是如果嵌套的transaction里面有rollback tran to save p ...
分类:
数据库 时间:
2017-09-21 14:43:59
阅读次数:
221
/*! * jQuery Cookie Plugin v1.4.0 * https://github.com/carhartl/jquery-cookie * * Copyright 2013 Klaus Hartl * Released under the MIT license */(funct ...
分类:
其他好文 时间:
2017-09-21 11:15:37
阅读次数:
151
1939 Q1 Detective Dark Knight Gotham Robin Human Detective Dark Knight Gotham Robin Human Q2 Q1 Q2 <html><head><title>1939</title></head><body><h1>Q1< ...
分类:
其他好文 时间:
2017-09-20 21:57:25
阅读次数:
119