Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

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½â¾öÁË£¬»¹ÊÇлл~


Ïà¹ØÎÊ´ð£º

Ë­ÖªµÀºÃÓõÄRuby IDE£¿

Ë­ÖªµÀºÃÓõÄRuby IDE£¿


·¹ý°ï¶¥

°ï¶¥

cheng_erÄãÕâ¸öÍ·Ïñ±ÈÎҵϹ»Æ°¡.

ÓÑÇéUp£¡~

´¿¶¥

ÒýÓÃ
cheng_erÄãÕâ¸öÍ·Ïñ±ÈÎҵϹ»Æ°¡.


ÕâÄêÍ·,Ææ¹ÖµÄÊÂÇéÔõôÕâô¶àÄØÎÒ¾Í˵
......

ÌÆÉ®£¡ruby on rails£¡ÎÒÓû¿ÞÎÞÀá¡£

±¾ÈËÓеãC££¸újavaµ××Ó£¬»ØÍ·Ö±½ÓÀ´Ñ§ROR¡£
Ôõô¸Ð¾õROR¾ÍÄÇô¶ñÐÄÈË£¬µ«ÓÖºÜÏëѧºÃ£¬ÆÈÓÚ¸÷·½ÃæÑ¹Á¦Ò²Ö»ÄÜѧϰROR¡£Ñ§ÁË´ó¸ÅÓÐÁ½¸öÔ°ɣ¬¿ÉÎÒ×ܸоõ×Ô¼ºÃŶ¼Ã»Èë¡­¡­Ì«¶àµÄÉËÐĵϰ¾Í²»Ïë¶à˵ÁË£¬Ö»Ï£Íû¿´µ½µÄ¸ß ......

ruby²Ù×÷Îļþ

require 'app/configuration'
module RubyAMF
  module Configuration
    #set the service path used in all requests
    # RubyAMF::App::RequestStore.service_p ......

ΪʲôrubyµÄ¹¤×ÊÕâô¸ß£¿

Ò»¸öͬѧ£¬¸Õ¸Õ´óѧ±ÏÒµ£¬µ½º¼ÖݵÄÒ»¼ÒÈÕÆó×öÍâ°ü£¬ÊÇÓõÄruby£¬ÔÂнһ¿ªÊ¼¾Í£¤8000ÁË£¬ÉÏÒ»Äêµ½ÄǵÄʦÐÖ¶¼ÉÏÍòÁË£¬ÎªÊ²Ã´×öphpÖ»ÓÐÄÇô2~3k£¿
ÒòΪ¶®rubyµÄÉÙ£¬ÎÒÃÇÕâ±ß»¹ÓÐ1.5WµÄÄØ
ÎïÒÔϡΪ¹ó

php,.net
Ë­È ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ