记录:包装js的方法

http://stackoverflow.com/questions/23343393/the-right-way-to-include-page-specific-javascript-in-rails http://brandonhilkert.com/blog/page-specific-javascript-in-rails/ http://stackoverflow.com/questions/2464595/including-inline-javascript-using-content-for-in-rails http://stackoverflow.com/questions/8824627/rails-content-for-does-not-get-executed-when-doing-render http://stackoverflow.com/questions/5951653/javascript-rails-views-content-for-and-dryness http://stackoverflow.com/questions/436411/where-should-i-put-script-tags-in-html-markup http://demianlabs.com/lab/post/top-or-bottom-of-the-page-where-should-you-load-your-javascript/