随笔分类 -  javascript

摘要:Document 阅读全文
posted @ 2017-08-24 17:23 Martin_lee 阅读(243) 评论(0) 推荐(0)
摘要:推荐:Spread.js地址:点击打开链接Demo:点击打开链接 阅读全文
posted @ 2017-07-15 11:11 Martin_lee 阅读(133) 评论(0) 推荐(0)
摘要:今天偶然找到javasc的手册地址=》js的手册 阅读全文
posted @ 2017-07-04 15:09 Martin_lee 阅读(75) 评论(0) 推荐(0)
摘要:knockout,change事件不知道为啥公司要用ko,就这样吧大概需求,动态绑定的预算类别,然后预算类别切换时候,根据预算类别中的value去找上级编号。 阅读全文
posted @ 2017-06-15 12:36 Martin_lee 阅读(595) 评论(0) 推荐(0)
摘要:比如1、设置value为pxx的项选中 $(".selector").val("pxx");2、设置text为pxx的项选中 $(".selector").find("option[text='pxx']").attr("selected",true);... 阅读全文
posted @ 2017-06-01 17:10 Martin_lee 阅读(209) 评论(0) 推荐(0)
摘要:$('#barcode').qrcode({ width: 300, height: 300, render: !!document.createElement('canvas').getContext ? 'canvas' : 'table'... 阅读全文
posted @ 2017-05-25 14:39 Martin_lee 阅读(168) 评论(0) 推荐(0)
摘要:$(this).attr("data-id") // will return the string "123"or .data() (if you use newer jQuery >= 1.4.3)$(this).data("id") // will return ... 阅读全文
posted @ 2017-03-30 15:09 Martin_lee 阅读(739) 评论(0) 推荐(0)
摘要:https://github.com/AlloyTeam/AlloyClip/blob/master/test/index.html 阅读全文
posted @ 2017-03-27 22:34 Martin_lee 阅读(155) 评论(0) 推荐(0)
摘要:/// /// 根据对应的imgid 把base=>二进制=>存入数据库 /// /// /// /// public ActionResult getbase(stri... 阅读全文
posted @ 2017-03-27 16:35 Martin_lee 阅读(113) 评论(0) 推荐(0)
摘要:用了webupload,生成的是base64格式的 图片: -->然后项目是.net mvc获取这个并且存入数据库或者存入文件夹。1.sql数据库字段varchar(8000)都不够,字段改成二进制的2.上传有时候进不了后台,因为我的上传是ajax传的 da... 阅读全文
posted @ 2017-03-27 14:35 Martin_lee 阅读(103) 评论(0) 推荐(0)