02 2016 档案

摘要:1.解析简单数据 2.jQ遍历json 数据 阅读全文
posted @ 2016-02-26 14:52 上官帅帅 阅读(214) 评论(0) 推荐(1)
摘要:1.登录数据库 mysql -u root -p 2.查看数据库 show databases; 3.进入数据库 use 数据库名 4.查看该数据库中的表 show tables; 5.查看某一表中的字段 show columns from articles; 阅读全文
posted @ 2016-02-19 11:45 上官帅帅 阅读(149) 评论(0) 推荐(1)
摘要:1.File 中参数的含义 2.File.new() 和 File.open() 的区别: 可以使用 File.open 方法创建一个新的 file 对象,并把该 file 对象赋值给文件。但是,File.open 和 File.new 方法之间有一点不同。不同点是 File.open 方法可与块关 阅读全文
posted @ 2016-02-18 15:20 上官帅帅 阅读(1517) 评论(0) 推荐(1)
摘要:1.创建controler: welcome ;action: index $ rails generate controller welcome index 2.创建名为Article的model定义title:string text:text$ bin/rails generate model 阅读全文
posted @ 2016-02-14 17:32 上官帅帅 阅读(247) 评论(0) 推荐(1)
摘要:ruby 中的动态方法 http://singleant.iteye.com/blog/1680382 Rails 大量使用了符号(symbol)。符号看上去很像变量名,不过以冒号作为前缀。符号的例子包括:action、:line_items、:id 等。可以把符号看作字符串文本,不过——如同魔法般 阅读全文
posted @ 2016-02-01 16:46 上官帅帅 阅读(212) 评论(0) 推荐(0)