From:一条被猫抛弃的他乡流浪狗!

随笔分类 -  Javascript Jquery

摘要:基于Jquery的ajax异步上传文件. 阅读全文
posted @ 2016-06-03 19:17 ICE_Inspire 阅读(1074) 评论(0) 推荐(0)
摘要:一个使用sea.js的Demo sea.js可以解决命名问题,js文件间的依赖等. index.html内容如下: 1 <!DOCTYPE html> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <meta http-equiv= 阅读全文
posted @ 2016-02-24 17:25 ICE_Inspire 阅读(343) 评论(0) 推荐(0)
摘要:1.0 GitHub下载地址: https://github.com/imochen/hotcss 或者我的百度网盘:http://pan.baidu.com/s/1pKlLqHX 使用方法看demo,很好理解. 2.0 相关软件 里面涉及scss文件,使用软件 koala(一个前端预处理器语言图形 阅读全文
posted @ 2016-02-23 15:57 ICE_Inspire 阅读(505) 评论(0) 推荐(0)
摘要:1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 5 <script src="/js/angular.min.js"></scrip 阅读全文
posted @ 2016-02-22 20:14 ICE_Inspire 阅读(303) 评论(0) 推荐(0)
摘要:以下写法:没有明确指定module和controller,写法不规范. 更改angular.js版本会出bug. 1 <html ng-app> 2 <head> 3 <title>1.0.1-1.5版本间的差异</title> 4 <script src="/js/angular-1.0.1.mi 阅读全文
posted @ 2016-02-22 20:09 ICE_Inspire 阅读(416) 评论(0) 推荐(0)
摘要:string.Format() JS版本 阅读全文
posted @ 2016-02-21 12:41 ICE_Inspire 阅读(199) 评论(0) 推荐(0)
摘要:[原文链接] https://www.huangwenchao.com.cn/2015/03/html5-image-preview.html 问题 加入我们在 HTML 里面有一个图片上传控件: <input id="upload_image" type="file" name="image" a 阅读全文
posted @ 2016-02-17 10:43 ICE_Inspire 阅读(518) 评论(0) 推荐(0)
摘要:1.0 作者:cloudgamer http://www.cnblogs.com/cloudgamer/archive/2010/04/01/ImageZoom.html 阅读全文
posted @ 2016-02-17 08:43 ICE_Inspire 阅读(333) 评论(0) 推荐(0)
摘要:1 <script type="text/javascript" src="//libs.baidu.com/jquery/1.7.2/jquery.min.js"></script> 2 <!--如果cdn jQ加载不成功 加载本地jQ库 --> 3 <script type="text/java 阅读全文
posted @ 2016-02-15 11:39 ICE_Inspire 阅读(521) 评论(0) 推荐(0)
摘要:1.0 引入: <script src="/js/jquery.tmpl.min.js"></script> 2.0 模板: <script type="text/x-jquery-tmpl" id="tmpl"> <li> <h5><a href="/news/Detail/${NewsId}"> 阅读全文
posted @ 2016-02-01 19:35 ICE_Inspire 阅读(1222) 评论(0) 推荐(1)
摘要:1.0 jQuery 序列化表单数据 serialize() 得到的是 ""; 表单元素没有name属性.(用的美工的页面,没注意这个细节.) 阅读全文
posted @ 2016-01-30 09:50 ICE_Inspire 阅读(266) 评论(0) 推荐(0)
摘要:写了一个脚本,如下: 1 $(function () { 2 $("#btnVcode").click(function () { 3 var receiveMobile = $("#Moblie").val();//手机号 4 var regMobile = /^1[3|4|5|7|8][0-9] 阅读全文
posted @ 2016-01-29 19:25 ICE_Inspire 阅读(2742) 评论(0) 推荐(0)
摘要:1 <!DOCTYPE html> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 5 <ti 阅读全文
posted @ 2016-01-28 20:08 ICE_Inspire 阅读(228) 评论(0) 推荐(0)
摘要:1.0 jquery的ajax同步和异步区别2.0cdnjquery加载失败加载本地 阅读全文
posted @ 2016-01-05 17:31 ICE_Inspire 阅读(156) 评论(0) 推荐(0)
摘要:百度分享 http://share.baidu.com/ 最简洁的例子: <div class="bdsharebuttonbox"><a href="#" class="bds_more" data-cmd="more"></a><a href="#" class="bds_qzone" data 阅读全文
posted @ 2016-01-04 10:44 ICE_Inspire 阅读(498) 评论(0) 推荐(0)
摘要:前台页面 1 @{ 2 Layout = null; 3 } 4 5 6 7 8 9 10 upload11 12 13 14 文件名称:15 上传文件:16 17 18 ... 阅读全文
posted @ 2015-12-12 17:29 ICE_Inspire 阅读(772) 评论(0) 推荐(0)
摘要:1 2 3 4 5 6 30 31 32 33 this is a scroll test; 页面下拉自动加载内容34 hello world test DIV35 36 37 38 来源:http://www.cnb... 阅读全文
posted @ 2015-11-30 14:29 ICE_Inspire 阅读(543) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2015-11-29 17:34 ICE_Inspire 阅读(2093) 评论(0) 推荐(0)
摘要:ligerUI布局 Center Tab高度太小 阅读全文
posted @ 2015-11-24 09:07 ICE_Inspire 阅读(842) 评论(0) 推荐(0)
摘要:贪婪模式和正则匹配 阅读全文
posted @ 2015-11-22 20:33 ICE_Inspire 阅读(350) 评论(0) 推荐(0)