Ruby on Rails£¨¼±£¡£¡£¡£¡£¡£¡ÔÚÏߵȣ©
HTML code:
<%= link_to_if_authorized l(:field_search_title), {:controller => 'books', :action => 'search', :project_id => @project, :title => @title} %>
<%= text_field_tag 'title', @title, :size => 30, :onchange => "#{@title} = this.value" %>
Ϊʲô@titleÈ¡²»µ½Öµ£¬ÄÄλ´óϺ¸æËßСµÜÔõôȡֵ£¬Ð¡µÜ³õѧÕߣ¬Íò·Ö¸Ðл°¡
Êǵ쬵«ÊÇdebug³öÀ´µÄ@title»òÕßparams[:title]¶¼Îª¿ÕÖµ£¬²»ÖªµÀΪʲô£¬ÄѵÀonchangeÖеÄ#{@title}È¡²»µ½ÖµÂð£¿
ÆäʵÎÒ¾ÍÊÇÏëÔÚlinkºóµÄurlÖмÓÈëtextboxÖеÄvalue×÷Ϊ²ÎÊý£¬»¹ÓÐûÓÐʲô°ì·¨°¡£¬¸ßÊÖÖ¸µãСµÜ°¡¡£
¾ÍÊÇÀàËÆÓÚjsÖеÄdocument.getElementById()£¬²»ÖªµÀÔÚrorÖÐÓÐûÓÐÕâÑùµÄ·½·¨¡£
×îºó»¹ÊÇÓÃjs½â¾öÁË£¬»¹ÊÇлл~
Ïà¹ØÎÊ´ð£º
¸øJavascriptºÍRuby¿ª¸öÂÛ̳רÀ¸°É!
¸øJavascriptºÍRuby¿ª¸öÂÛ̳רÀ¸°É!
¸øJavascriptºÍRuby¿ª¸öÂÛ̳רÀ¸°É!
JavascriptÓÐרÀ¸µÄ£ºhttp://forum.csdn.net/SList/JavaScript
×ð¾´µÄÓû§deping_chen£¬ÄúºÃ£º ......
ÎÒÔÚruby on railsÉÏÖ´ÐÐϵͳÃüÁµ«ÊǸÃϵͳÃüÁî¶¼ÔÚÎÒĬÈϵÄ·¾¶ÉÏÖ´Ðе쬼´/var/www/my¡£ÏÖÔÚÎÒÓÃrubyÓïÑÔ±à³Ì£¬¿É´´½¨ÁËÒ»¸öÐÂĿ¼aaa£¨system "mkdir aaa"¼´¿É£©£¬µ«ÊÇÎÒ²»ÄܽøÈëaaaĿ¼Ï½øÐвÙ×÷ ......
ruby ¹ØÓÚ¼ÓÃÜ£¬¸÷λ´ó´óÃÇÖªµÀÔõô½â¾ö£¿
·Ç³£¸Ðл£¡£¡
ÃÜÂë²»ÒÔÃ÷Îĵı£´æÐÎʽ£¬Ê×ÏÈ¶ÔÆä½øÐÐSHA1¼ÓÃÜ£¬È»ºó±£´æÒ»¸ö160λµÄÉ¢ÁÐÂ룬µ±Óû§µÇ¼ÊÇ£¬¶ÔÆäÊäÈëµÄÃÜÂë×öͬÑùµÄ¼ÓÃÜ´¦Àí£¬²¢½«¼ÓÃܵĽá¹ûÓëÊý¾Ý¿â ......
ÎÒÏÖÔÚ²»µÃ²»ÃæÁÙÒ»¸öÑ¡Ôñ£º A£¬Ìø²Û¼ÌÐø×öJ2EE. B,תÐÍ×örailsµÄ¿ª·¢
ÔÚй«Ë¾¹¤×÷ÒѾ°ëÄ꣬Õâ±ßµÄ·ÕΧ±È½ÏÇáËÉÓä¿ì£¬µ«ÊÇÎÒ¸ºÔðµÄÒ»¸öJavaÏîÄ¿ÒѾÉÏÏߣ¬°´ÕÕpmµÄÒªÇó£¬ÈÃÎÒתÐÍ×örails¿ª·¢¡£¾ÍÎÒѧϰrailsµÄ¹ý³ ......