摘要: nvm alias default 0.12.10 nvm alias default 0.10.24 nvm list NVM_NODEJS_ORG_MIRROR=http://npm.taobao.org/mirrors/node nvm install v0.12.10 NVM_NODEJS_ 阅读全文
posted @ 2016-04-29 16:31 yanying12138 阅读(726) 评论(0) 推荐(0) 编辑
摘要: sudo apt-add-repository ppa:brightbox/ruby-ng sudo apt-get update sudo apt-get install ruby rubygems ruby-switch sudo apt-get install ruby1.9.1 阅读全文
posted @ 2016-04-29 09:55 yanying12138 阅读(156) 评论(0) 推荐(0) 编辑
摘要: jQuery('#parentId').select2({ placeholder: 'Please select a parent department', allowClear: true, ajax: { url: url, dataType: 'json', delay: 250,... 阅读全文
posted @ 2016-04-27 17:08 yanying12138 阅读(133) 评论(0) 推荐(0) 编辑
摘要: String sql = "SELECT COUNT(*) as count, Date(created) as date FROM redeem_code_history WHERE merchant_user_id = :merchantUserId GROUP BY Date(created) 阅读全文
posted @ 2016-04-26 10:10 yanying12138 阅读(166) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/coolcoffee168/article/details/5835143 阅读全文
posted @ 2016-04-14 14:08 yanying12138 阅读(138) 评论(0) 推荐(0) 编辑
摘要: document.writeln(location.protocol); document.writeln(location.origin); //包括端口号 document.writeln(location.host); //不包括端口号 document.writeln(location.po 阅读全文
posted @ 2016-04-12 14:45 yanying12138 阅读(1543) 评论(0) 推荐(0) 编辑
摘要: 1. 去除html标签: strip_tags 2. 转义html标签: htmlspecialchars 阅读全文
posted @ 2016-04-11 14:50 yanying12138 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 方法二: 下载xml文件 参考网站: http://yedward.net/?id=21 阅读全文
posted @ 2016-04-11 14:23 yanying12138 阅读(397) 评论(0) 推荐(0) 编辑
摘要: 1. 跑schedule : php src/cli-schedule/cli.php -a sales.coupon.offer-coupons 所用方法在schedule里 阅读全文
posted @ 2016-04-08 14:51 yanying12138 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 1. 安装jdk 1.7 在ubuntu( /usr/lib/jvm/java-7-openjdk-amd64 )中默认有安装jdk 1.7 如果没有 可下载 : http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloa 阅读全文
posted @ 2016-03-31 10:14 yanying12138 阅读(657) 评论(0) 推荐(0) 编辑