随笔分类 -  Development

摘要:MSSQL To MongoDB ToolUsage 文档:https://mssql2mongo.codeplex.com/documentation下载:https://mssql2mongo.codeplex.com/releases简介:https://mssql2mongo.codeplex.com/ 阅读全文
posted @ 2013-07-07 00:09 iEden 阅读(326) 评论(0) 推荐(0)
摘要:The difference between .bind(), .live(), and .delegate() is not always apparent. Having a clear understanding of all the differences, though, will help us write more concise code and prevent bugs from popping up in our interactive applications.The jQuery team have announced in v1.7 a new method for 阅读全文
posted @ 2012-06-17 23:58 iEden 阅读(322) 评论(0) 推荐(0)
摘要:很多时候,对于一些使用原生javascript的网页,我们需要研究里面的一些功能,或者干些坏事,最需要的就是jQuery,如何在一个仅支持原生JavaScript的网页里,手工加载jQuery呢?//Include jQueryvar body = document.getElementsByTagName('body')[0];var s = document.createElement('script');s.setAttribute('type', 'text/javascript');s.setAttribute(' 阅读全文
posted @ 2012-06-09 01:29 iEden 阅读(724) 评论(0) 推荐(0)
摘要:/** * * Base64 encode / decode * http://www.webtoolkit.info/ * **/var Base64 = { // private property _keyStr: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", // public method for encoding encode: function(input) { var output = ""; var chr1, chr2, ... 阅读全文
posted @ 2012-05-24 21:49 iEden 阅读(387) 评论(0) 推荐(0)
摘要:通过给prototype增加方法来让JavaScript中Date类型原生的支持和.NET中一样的format功能:Date.prototype.format = function (mask) { var d = this; var zeroize = function (value, length) { if (!length) length = 2; value = String(value); for (var i = 0, zeros = ''; i < (length - value.length); i++) { zeros += '0'; 阅读全文
posted @ 2012-05-24 21:16 iEden 阅读(247) 评论(0) 推荐(0)
摘要:IE与Firefox下javascript getyear年份不同浏览器 JavaScript 的getyear年份函数兼容性问题先举个例子 用 Firefox 上一些网站会看到这样的提示 现在时间是 106年8月8日 而用 ie 浏览器的话就显示正常的 2006年8月8日 原因就是 javascript 的兼容性问题 var today = new date(); var year = today.getYear(); 在 Firefox 里面 getYear 返回的是 "当前年份-1900" 的值 (以前都如此) 而微软很NB的做了一个改动: 当today的年份大于等于 阅读全文
posted @ 2012-05-24 13:42 iEden 阅读(189) 评论(0) 推荐(0)
摘要:谓词(筛选表达式)及轴的概念: XPath的谓词即筛选表达式,类似于SQL的where子句.轴名称结果ancestor选取当前节点的所有先辈(父、祖父等)ancestor-or-self选取当前节点的所有先辈(父、祖父等)以及当前节点本身attribute选取当前节点的所有属性child选取当前节点的所有子元素。descendant选取当前节点的所有后代元素(子、孙等)。descendant-or-self选取当前节点的所有后代元素(子、孙等)以及当前节点本身。following选取文档中当前节点的结束标签之后的所有节点。namespace选取当前节点的所有命名空间节点parent选取当前节点 阅读全文
posted @ 2012-05-24 13:23 iEden 阅读(953) 评论(0) 推荐(0)
摘要:为JavaScript Date增加format方法:Date.prototype.format = function (mask) {var d = this;var zeroize = function (value, length) {if (!length) length = 2;value = String(value);for (var i = 0, zeros = ''; i < (length - value.length); i++) {zeros += '0';}return zeros + value;};return mask.re 阅读全文
posted @ 2012-04-04 14:30 iEden 阅读(224) 评论(0) 推荐(0)
摘要:This isn’t strictly related toSharePoint development, as you can do this with any ASP.NET page, but basicallythe theory here is that you can avoid the need to deploy files (such asJavaScripts, images, CSS sheets, whatever) to your sites by embedding themwithin your DLL’s. The reason I have been look 阅读全文
posted @ 2012-04-04 14:28 iEden 阅读(195) 评论(0) 推荐(0)