摘要: 最近工作遇到一个iframe的问题 就是iframe需要根据内容高度变化 筛选了无数个搜索引擎返回的数据 得到以下解决方案function reinitIframe(){ var iframe = document.getElementById("frame_content"); try... 阅读全文
posted @ 2015-05-17 21:19 ElvinLong 阅读(1398) 评论(0) 推荐(0) 编辑
摘要: 1.alert(msg)msg 要弹出的消息 此方法有一个确定按钮 无返回值2.confirm(msg)msg 要弹出的消息 此方法有一个确定和取消按钮 确定返回true 取消返回false3.prompt(msg)msg 要弹出的消息此方法有一个确定和取消按钮 以及一个输入框 1. 点击确定按钮,... 阅读全文
posted @ 2015-04-28 10:38 ElvinLong 阅读(265) 评论(0) 推荐(0) 编辑
摘要: function getFileName(str){ var reg = /[^\\\/]*[\\\/]+/g; //xxx\或者是xxx/ str = str.replace(reg,''); return str;}var str2 = 'user/550bbc9e0ad08fac0b39c14... 阅读全文
posted @ 2015-04-24 11:41 ElvinLong 阅读(1408) 评论(0) 推荐(0) 编辑
摘要: 1.Git 配置使用Git的第一件事就是设置你的名字和email,这些就是你在提交commit时的签名。git config --global user.name "you name"git config --global user.email "youemail@email.com"2.Clon... 阅读全文
posted @ 2015-04-22 23:43 ElvinLong 阅读(144) 评论(0) 推荐(0) 编辑
摘要: http://www.gbtags.com/gb/tag/1091.htm 阅读全文
posted @ 2015-04-21 09:41 ElvinLong 阅读(192) 评论(0) 推荐(0) 编辑
摘要: HTML 是网页内容的载体.(内容可以包括文字,图片, 视频等等)CSS 样式是表现。(改变内容外观)JavaScript是用来实现网页上特效效果。(实现动画,交互等等)HTML 标签MetaHTML 与 XHTML 之间的差异在 HTML 中, 标签没有结束标签。在 XHTML 中, 标签必须被正... 阅读全文
posted @ 2015-04-20 23:21 ElvinLong 阅读(151) 评论(0) 推荐(0) 编辑
摘要: Date.prototype.format = function(format){ var o = { "M+" : this.getMonth()+1, //month "d+" : this.getDate(), //day "h+" : this.g... 阅读全文
posted @ 2015-04-17 16:23 ElvinLong 阅读(279) 评论(0) 推荐(0) 编辑
摘要: http://www.w3cschool.cc/jquery/jquery-plugin-validate.htmlace adminhttp://szfsll.gicp.net:4477/ace/html/error-500.htmlhighchartshttp://www.highcharts.... 阅读全文
posted @ 2015-04-02 14:23 ElvinLong 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 1).update()命令db.collection.update( criteria, objNew, upsert, multi )criteria : update的查询条件,类似sql update查询内where后面的objNew : update的对象和一些更新的操作符(如$,$inc.... 阅读全文
posted @ 2015-03-27 15:15 ElvinLong 阅读(600) 评论(0) 推荐(0) 编辑
摘要: /** * 将数值四舍五入(保留2位小数)后格式化成金额形式 * * @param num 数值(Number或者String) * @return 金额格式的字符串,如'$1,234,567.45' * @type String */function formatCurrency(num) { ... 阅读全文
posted @ 2015-03-26 11:59 ElvinLong 阅读(313) 评论(0) 推荐(0) 编辑