Skip to content

Commit ef435ed

Browse files
committed
Update 04.2.md
1 parent dbf185a commit ef435ed

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ebook/04.2.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,6 @@
9494
}
9595
return false
9696

97-
上面这个函数包含在我开源的一个库里面(操作slice和map的库),[https://github.com/astaxie/beeku](https://github.com/astaxie/beeku)
98-
9997
## 单选按钮
10098
如果我们想要判断radio按钮是否有一个被选中了,我们页面的输出可能就是一个男、女性别的选择,但是也可能一个15岁大的无聊小孩,一手拿着http协议的书,另一只手通过telnet客户端向你的程序在发送请求呢,你设定的性别男值是1,女是2,他给你发送一个3,你的程序会出现异常吗?因此我们也需要像下拉菜单的判断方式类似,判断我们获取的值是我们预设的值,而不是额外的值。
10199

@@ -130,6 +128,7 @@
130128

131129
return false
132130

131+
上面这个函数`Slice_diff`包含在我开源的一个库里面(操作slice和map的库),[https://github.com/astaxie/beeku](https://github.com/astaxie/beeku)
133132

134133
## 日期和时间
135134
你想确定用户填写的日期或时间是否有效。例如

0 commit comments

Comments
 (0)