jquery 设置属性 滑动 绑定事件 中断 横列表 手效果 中文正则
来源:互联网 发布:mac桌面壁纸文件夹 编辑:程序博客网 时间:2024/05/20 14:23
设置隐藏属性
设置$("#ss").attr("cphonename",f.attr("alt"));读取$("#ss").attr("cphonename");
滑动效果
<script>$(document).ready(function(){ $("#hide").click(function(){ if($("#left").css('width') == '200px'){ $("#left").animate({width:0},"slow"); $("#hide").val('显示'); }else{ $("#left").animate({width:200},"slow"); $("#hide").val('隐藏'); }});});</script><div id="left" style="width:200px; background-color:#009900; float:left;"> </div><div id="right" style="width:400px; background-color: #FF0000; float:left;"> </div><div style="float:left"><input id="hide" type="button" value="隐藏" /></div>
绑定事件
$('p').click(function(e){ $(e.currentTarget) //获取当前点击的元素})$('p').unbind(); //清除绑定的事件
中断加载
throw new Error('error')
radio选择
$(":radio[name='phoneList'][value='" + tempname + "']").prop("checked", "checked");
横向列表
<ul class="hul"> <li>1</li> <li>2</li></ul>.hul li{ text-decoration: none;//去掉li前面的圆点 list-style: none; display: inline;//让li横向排列 }
保留小数后多少位
a = 1.22228a.toFixed(2) 保留两位小数
用css 添加手状样式,鼠标移上去变小手,变小手
cursor:pointer;
判断包含中文正则
/.*[\u4e00-\u9fa5]+.*$/.test("中文") js 检测是否为中文
阅读全文
0 0
- jquery 设置属性 滑动 绑定事件 中断 横列表 手效果 中文正则
- jQuery绑定事件及动画效果
- jquery移除元素属性/绑定事件
- radio 切换效果 -JQuery绑定事件.bind() 绑定radio值
- Jquery Mobile changePage事件实现左右滑动效果
- jquery鼠标hover事件文字内容滑动遮罩效果
- jQuery动态绑定事件(简单模拟二级联动效果)
- jquery滑动效果
- jquery 各种滑动效果
- jQuery切换滑动效果
- jQuery实现滑动效果
- jQuery 效果 - 滑动
- jquery 滑动效果
- jQuery 效果 - 滑动
- jQuery 效果 - 滑动
- jQuery效果之滑动
- 7. jQuery 效果 - 滑动
- 10009---jQuery效果--滑动
- Kotlin系列视频教程
- shell知识点回顾一
- 终于搞懂了shell bash cmd...
- IntelliJ Idea 2017 注册码 免费激活方法
- 学习摘要:Methods for interpreting and understanding deep neural networks
- jquery 设置属性 滑动 绑定事件 中断 横列表 手效果 中文正则
- Cors解决ajax跨域
- I2C 设备地址求解
- Android时间与日期的格式上的拆分+统一
- 升级到Android Studio 3.0 运行项目报错DexArchiveMergerException: Unable to merge 解决汇总
- 一个 Top k 问题
- Linux用户管理
- cropper js基于vue的图片裁剪上传功能。
- 配置qemu时遇到disanbling libtool due to broken toolchain support问题的解决办法