随笔分类 -  Javascript

javascript
摘要:textarea还剩余字数统计 textarea还剩余字数统计 textarea还剩余字数统计,支持复制粘贴的时候统计字数 200/200 阅读全文
posted @ 2017-11-27 10:30 Adtuu 阅读(418) 评论(0) 推荐(0)
摘要:$.ajax({ url: 'xxxx.do', type: 'POST', cache: false, data: new FormData($('.layui-form')[0]), processData: false, ... 阅读全文
posted @ 2017-11-25 22:00 Adtuu 阅读(337) 评论(0) 推荐(0)
摘要:1、引入requirejs 2、配置requirejs require.config({ urlArgs: "r=" + (new Date()).getTime(), // 加载的js路径后面加上随机参数,防止浏览器缓存 baseUrl: '/js/common',// 指定js目录,requirejs动态加载js的根目录 paths: { ... 阅读全文
posted @ 2017-11-13 13:07 Adtuu 阅读(388) 评论(0) 推荐(0)
摘要:222222 阅读全文
posted @ 2017-10-25 22:04 Adtuu 阅读(178) 评论(0) 推荐(0)
摘要:<script type="text/javascript"> function changeURL(){ var url = document.getElementById('url').value; window.history.pushState({},0,'http://'+window.l 阅读全文
posted @ 2016-09-19 11:43 Adtuu 阅读(322) 评论(0) 推荐(0)
摘要:var title = 'blog'; (function(title){ $.post(url, {}, function(data){ alert(title);//output single's blog, 我们期望的是输出 blog }) }(title)) title = "single' 阅读全文
posted @ 2016-02-24 16:14 Adtuu 阅读(133) 评论(0) 推荐(0)
摘要:var JPlaceHolder = { //检测 _check : function(){ return 'placeholder' in document.createElement('input'); }, //初始化 init : functi... 阅读全文
posted @ 2015-12-15 09:57 Adtuu 阅读(163) 评论(0) 推荐(0)
摘要:Hello SyntaxHighlighter Hello SyntaxHighlighterfunction helloSyntaxHighlighter(){ return "hi!";}$test = '123';echo $test;var_dump($test);funct... 阅读全文
posted @ 2015-08-28 11:56 Adtuu 阅读(176) 评论(0) 推荐(0)
摘要:html5大文件切割上传 0% 阅读全文
posted @ 2015-08-18 15:32 Adtuu 阅读(1704) 评论(0) 推荐(0)
摘要:#### DIV当textarea使用,在聚焦的时候将光标移动到内容的末尾 ####HTML代码:aaaa 阅读全文
posted @ 2015-07-30 09:33 Adtuu 阅读(605) 评论(0) 推荐(0)
摘要:Map 阅读全文
posted @ 2015-07-30 09:32 Adtuu 阅读(925) 评论(0) 推荐(0)
摘要:Map 阅读全文
posted @ 2015-07-30 09:32 Adtuu 阅读(662) 评论(0) 推荐(0)
摘要:Layzr Demo 阅读全文
posted @ 2015-07-30 09:29 Adtuu 阅读(215) 评论(0) 推荐(0)
摘要:一:使用jsonp格式,如jquery中ajax请求参数 dataType:'JSONP'。 title 测试Ajax跨域问题 二,server端加上header设为Access-Control-Allow-Origin:*header("Access-Control-Allo... 阅读全文
posted @ 2015-07-30 09:28 Adtuu 阅读(429) 评论(0) 推荐(0)
摘要:live cam 录像页面 阅读全文
posted @ 2015-07-30 09:26 Adtuu 阅读(1692) 评论(0) 推荐(0)
摘要:摄像头的调用 阅读全文
posted @ 2015-07-24 16:27 Adtuu 阅读(1661) 评论(0) 推荐(0)
摘要:This text is displayed if your browser does not support HTML5 Canvas.This text is displayed if your browser does not support HTML5 Canvas. 阅读全文
posted @ 2015-07-24 16:22 Adtuu 阅读(1471) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2015-07-24 16:21 Adtuu 阅读(676) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2015-07-24 16:20 Adtuu 阅读(648) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2015-07-24 16:14 Adtuu 阅读(678) 评论(0) 推荐(0)