摘要: How to increment a date in a bash script Use the date command's ability to add days to existing dates. The following: DATE=2013-05-25 for i in {0..8} 阅读全文
posted @ 2019-07-04 20:14 ChuckLu 阅读(189) 评论(0) 推荐(0)
摘要: Running .sh scripts in Git bash Let's say you have a script script.sh. To run it (using Git Bash), you do the following chmod +x script.sh ./script.sh 阅读全文
posted @ 2019-07-04 18:55 ChuckLu 阅读(370) 评论(0) 推荐(0)
摘要: What is the !! (not not) operator in JavaScript? 解答1 Coerces强制 oObject to boolean. If it was falsey (e.g. 0, null, undefined, etc.), it will be false, 阅读全文
posted @ 2019-07-04 17:53 ChuckLu 阅读(242) 评论(0) 推荐(0)
摘要: 如何将图片显示为canvas https://github.com/blueimp/JavaScript-Load-Image/blob/master/js/load-image-scale.js https://github.com/blueimp/JavaScript-Load-Image/bl 阅读全文
posted @ 2019-07-04 17:45 ChuckLu 阅读(996) 评论(0) 推荐(0)
摘要: .each() .each() .each( function )Returns: jQuery Description: Iterate over a jQuery object, executing a function for each matched element. version add 阅读全文
posted @ 2019-07-04 16:18 ChuckLu 阅读(158) 评论(0) 推荐(0)
摘要: Iterating through/Parsing JSON Object via JavaScript 解答1 Your JSON object is incorrect because it has multiple properties with the same name. You shou 阅读全文
posted @ 2019-07-04 16:13 ChuckLu 阅读(387) 评论(0) 推荐(0)
摘要: Make jQuery throw error when it doesn't match an element 解答1 You could make a plugin to use to ensure that the jQuery object is not empty: $.fn.ensure 阅读全文
posted @ 2019-07-04 10:48 ChuckLu 阅读(207) 评论(0) 推荐(0)
摘要: uncaught syntaxerror unexpected token U JSON The parameter for the JSON.parse may be returning nothing (i.e. the value given for the JSON.parse is und 阅读全文
posted @ 2019-07-04 10:44 ChuckLu 阅读(411) 评论(0) 推荐(0)
摘要: https://api.jquery.com/jQuery.parseJSON/ https://api.jquery.com/category/deprecated/deprecated-3.0/ As of jQuery 3.0, $.parseJSON is deprecated. To pa 阅读全文
posted @ 2019-07-04 10:11 ChuckLu 阅读(332) 评论(0) 推荐(0)
摘要: http://www.ruanyifeng.com/blog/2010/05/object-oriented_javascript_inheritance.html 这个系列的第一部分,主要介绍了如何"封装"数据和方法,以及如何从原型对象生成实例。 今天要介绍的是,对象之间的"继承"的五种方法。 比 阅读全文
posted @ 2019-07-04 00:08 ChuckLu 阅读(168) 评论(0) 推荐(0)