随笔分类 -  jquery

jquery.qrcode 生成二维码带logo
摘要:注意: 增加中间logo的时候, 嵌入的 logo 的 img 对象 <img src="">,直接传 logo 的 url 并没有用,会直接报错出来,必须用img标签的形式。 当 render 为 canvas 时, img.src 可为 非同域当 render 为 image 时, img.sr 阅读全文
posted @ 2016-05-26 14:46 whlives 阅读(15932) 评论(1) 推荐(1)
jQuery插件AjaxFileUpload实现ajax文件上传
摘要:jQuery插件AjaxFileUpload用来实现ajax文件上传,该插件使用非常简单,接下来写个demo演示怎么用AjaxFileUpload插件实现文件上传。1、引入AjaxFileUpload插件相关的js备注:测试发现,ajaxfileupload对jQuery版本是有要求的,在使用中aj... 阅读全文
posted @ 2015-04-01 16:08 whlives 阅读(252) 评论(0) 推荐(0)
jquery判断多选框是否选中
摘要:if($("#xieyi").is(":checked")){ alert('选中');}else{ alert('没有选中')} 阅读全文
posted @ 2014-10-13 12:47 whlives 阅读(738) 评论(0) 推荐(0)
placeholder在IE8中兼容性问题解决
摘要:placeholder是HTML5中的一个属性,可以在文本框中设置placeholder属性来显示一些提示性的文字,但对IE10以下的浏览器不支持,下面方法可以让placeholder能够使用在IE10以下的版本中。第一种方法是在页面中添加下面一段脚本:上面的方法不能支持password类型的文本框... 阅读全文
posted @ 2014-09-28 10:27 whlives 阅读(5709) 评论(0) 推荐(0)
jquery颜色选择器
摘要:代码下载 阅读全文
posted @ 2014-07-31 16:10 whlives 阅读(164) 评论(0) 推荐(0)
jQuery一句话实现多选框全选/取消
摘要:全选 …… 阅读全文
posted @ 2014-07-31 16:04 whlives 阅读(200) 评论(0) 推荐(0)
jquery ajax和php实现返回值 json类型
摘要:js页面$.ajax({ type: “POST”, dataType: ‘json’, url: “add_vote.php”, data: “touid=”+uid+”&tousername=”+username, success: function(msg){ //js... 阅读全文
posted @ 2014-07-31 16:00 whlives 阅读(1082) 评论(0) 推荐(0)
jquery 取的单选按钮组的值
摘要:1箱起批2箱起批3箱起批var v_wholesale_one = $(“:radio[name='wholesale_one'][checked]“).val(); 阅读全文
posted @ 2014-07-31 15:03 whlives 阅读(256) 评论(0) 推荐(0)
jquery表单提交和重置
摘要:$('#myform').submit() 表单提交$('#myform')[0].reset() 表单重置 阅读全文
posted @ 2014-07-31 14:57 whlives 阅读(337) 评论(0) 推荐(0)