- 博客(13)
- 收藏
- 关注
原创 mac 安装redis
redis下载地址:https://redis.io/download1、mac打开finder,前往文件夹/usr/local2、将下载的redis压缩包解压到/usr/local文件路径中3、打开终端窗口,到/usr/local/redis的文件夹中,执行 make test 进行测试编译,如需管理员授权运行在命令前加sudo4、测试编译通过后,输入make install 安
2018-01-09 13:12:32
234
原创 grunt——mac安装
grunt是前端构建工具,官方网址:http://www.gruntjs.net/命令安装:npm install -g grunt-cli安装后,命令grunt,出现如下信息则安装完成:grunt-cli: The grunt command line interface (v1.2.0)Fatal error: Unable to find local grunt.
2016-11-16 13:30:10
1111
原创 bower——mac安装
bower 是web包管理器,bower官方网址:https://bower.io/全局安装命令:npm install -g bower和yeoman一样安装之前需要安装nodejs环境
2016-11-16 13:27:52
1497
原创 yeoman---mac安装
yeoman是前端脚手架,其官方网址:http://yeoman.io/如何安装yeoman,在安装yeoman之前需要安装nodejs环境,可根据node官网下载安装nodejs环境安装完nodejs后,使用npm全局安装yeoman:安装命令:npm install -g yoyo是yeoman在npm中的安装名称,如果在安装过程中出现:tunneling socket
2016-11-16 13:12:06
752
原创 mac下手动卸载mysql
sudo rm /usr/local/mysqlsudo rm -rf /usr/local/mysql*sudo rm -rf /Library/StartupItems/MySQLCOMsudo rm -rf /Library/PreferencePanes/My*rm -rf ~/Library/PreferencePanes/My*sudo rm -rf /Library/Receipts
2016-10-31 10:45:41
270
原创 node进击之路(2)——调用模块
在调用模块前,需要对模块进行定义:function mod(){ this.fun=function(){ console.log('调用模块') }}module.exports = mod;需要使用module.exports导出定义的模块使用require调用所定义的模块mod,require('./mod')var mod = require('./mod')
2016-10-18 15:14:39
230
原创 node进击之路(1)——调用函数
函数本地调用,在同一文件下调用函数var http = require('http');http.createServer(function(request,response){ response.writeHead(200,{'Content-type':'text/html'}); response.write('欢迎来到node世界'); //调用函数fun1 fun1
2016-10-17 16:02:17
272
原创 React.createElement使用
React.createElement一看这个就能和document.createElement方法类似,创建元素document.createElement是创建一个指定的元素节点,其参数只有一个nodeName:document.createElement(nodeName)React.createElement是创建指定类型的React元素节点,其参数有三个:React.create
2016-10-10 16:37:21
12296
原创 js函数声明和函数表达式
函数声明:在所有,如下:function test(){ console.log("函数声明")}函数表达式,如下:var test = function(){ console.log("函数表达式")}
2016-10-08 15:03:21
251
原创 对List中,中文按照首字母进行排序
Comparator cmp = Collator.getInstance(java.util.Locale.CHINA);Collections.sort(_list, cmp);
2014-07-25 14:13:18
1351
原创 关于在后台获得十六进制字符串进行解码
如果你在前台传参数,到后台是如下显示的:String str = "select%20xm%20as%20xm%20from%20rkk%20where%201=1%20and%20xm%20like%20('%25%E8%A7%A3%E8%BE%A3%25')%20"; 你可以使用API中URLDecoder.decode(str,"UTF-8");第一个参数是你传入的字符串
2012-09-12 20:49:14
628
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人