
H5
java_陈序猿
工作总结积累
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Jquery 插件开发 demo
/闭包限定命名空间 (function ($) { $.fn.extend({ "highLight": function (options) { //检测用户传进来的参数是否合法 if (!isValid(options)) return this; var opts原创 2016-12-22 09:27:21 · 385 阅读 · 0 评论 -
短信验证码 60秒倒计时
$(".validate-code").on("click",function(){ var username = $("#username").val(); if(!username.match(/^[1][3,4,5,7,8][0-9]{9}$/)){ $.alino.alert("手机号码不正确");return;原创 2017-01-03 16:36:37 · 477 阅读 · 0 评论 -
判断手机号 h5
if (!username.match(/^[1][3,4,5,7,8][0-9]{9}$/)) { layer.open({content: "请正确填写收件人姓名", skin: 'msg', time: 2}); return;}原创 2017-01-11 11:28:10 · 1180 阅读 · 0 评论 -
H5 按钮置底
1 position: absolute;bottom: 0;width: 100%; 2.当隐藏内容显示的时候 js 设置position为relative $("#buttomPostion").css({"position":"relative","margin-top":"10px"}); 3.z-index: -1原创 2017-03-10 16:38:45 · 3953 阅读 · 0 评论 -
H5 ajax递交带有file的form表单
HTML+js: $(".class").change(function () { var id = $(this).attr("id"); console.debug("id:" + id); var formData = new FormData(); var name = $(this).val(); form原创 2016-12-19 13:49:41 · 1780 阅读 · 0 评论 -
多选下拉框 select
引入库 例子 宣传部政法委编办统战部 效果原创 2017-06-27 09:17:38 · 1256 阅读 · 0 评论 -
h5 form 带有文件的递交 自动验证 ajax
src="http://static.runoob.com/assets/jquery-validation-1.14.0/dist/jquery.validate.min.js"> src="http://static.runoob.com/assets/jquery-validation-1.14.0/dist/localization/messages_zh.js"> $().ready(原创 2017-06-28 09:10:41 · 481 阅读 · 0 评论 -
css 类 选择
如图,如果像选择类名为class=exerciseInfo中的第一个和最后一个div,做法如下: 选择第一个类名: .exerciseInfo: nth-of-type(1) { ... }; 选择最后一个类名: .exerciseInfo: last-child { ... }; 选择其中一个指定的类名:.exerciseInfo: nth-of-type(x) { ... };...转载 2019-08-30 10:19:29 · 442 阅读 · 0 评论