Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB
ÈÈÃűêÇ©£º c c# c++ asp asp.net linux php jsp java vb Python Ruby mysql sql access Sqlite sqlserver delphi javascript Oracle ajax wap mssql html css flash flex dreamweaver xml
 ×îÐÂÎÄÕ : Ruby

[ÒÑÊÜÀí] ¸øJavascriptºÍRuby¿ª¸öÂÛ̳רÀ¸°É!

¸øJavascriptºÍRuby¿ª¸öÂÛ̳רÀ¸°É!
¸øJavascriptºÍRuby¿ª¸öÂÛ̳רÀ¸°É!
¸øJavascriptºÍRuby¿ª¸öÂÛ̳רÀ¸°É!
JavascriptÓÐרÀ¸µÄ£ºhttp://forum.csdn.net/SList/JavaScript

×ð¾´µÄÓû§deping_chen£¬ÄúºÃ£º
   
    Èçһ¥Ëù˵£¬ÎÒÃÇÓÐJavascriptС°æ¿é¡£

¸ÐлÄúÖ§³ÖCSDN ÉçÇø ......

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" %>


ÎªÊ ......

Rubyµ½µ×¸ÉÂðµÄ£¿

Ö÷Òª×öÄĸö·½ÃæµÄ£¿ÊDZàÒëÐ͵Äô£¿
Ò»Ãűà³ÌÓïÑÔ£¬²»ÊDZàÒëÐ͵Ä

¿´¿´ÕâÀï°É:
http://www.ruby-lang.org/en/

rubyÊÇһÎâÊÍÐ͵ÄÃæÏò¶ÔÏóÓïÑÔ¡£×î¾ß´ú±íµÄÓ¦ÓÃÊÇrails---web¿ìËÙ¿ª·¢¿ò¼Ü
......

Çë½ÌRubyµÄÒ»¸öÎÊÌâ¡£

RubyµÄÒ»¸ö¹ØÓÚÇóÊý×éµÄËùÓÐ×Ó¼¯µÄ³ÌÐò£¬
ÏÂÃæµÄforÑ­»·ÖеĶÔÏóÇø¼äÅжϣ¬»áÐÞ¸ÄjµÄÖµÂ𣿻¹ÓÐj+a..j+bµÄ¶ÔÏóÇø¼äÊÇÔõô±ä»¯µÄ£¿

ÎÒÔö¼Ó´òÓ¡¿´ÖµµÄ±ä»¯±È½ÏÆæ¹Ö¡­¡­

class Array

  def powerset
    num = 2**size
    ps = Array.new(num, [])
    ......

rubyÁ¬½Ó£Í£ù£ó£ñ£ìÎÊÌâ

Á¬½Ó£Í£ù£ó£ñ£ìÊý¾Ý¿âµÄʱºò£¬ÀÏÊDZ¨Õâ¸ö´íÎ󣡲»ÖªµÀÔõô»ØÊÂ
¸÷λ´ó´óÃÇ£¬ÄÜ·ñ¸æÖª£¬¸Ð¼¤²»¾¡

ÁíÍ⣬ÎÒÔÚ¹«Ë¾ÓòÖУ¬¿ÉÄÜ»á³öÏÖһЩÎÊÌâ

NoMethodError in BookController#list
undefined method `scaffold' for BookController:Class
RAILS_ROOT: C:/railsdoc/Mybook

Application Tra ......

rubyÈçºÎ¸ñʽ»¯Êý×Ö£¿£¨´ÓÓÒ±ßÆðÿÈýλһ¸ö¶ººÅ¸ô¿ª£©

Êý×Ö´ÓÓÒ±ßÆðÿÈýλÓÃÒ»¸ö¶ººÅ¸ô¿ª
1232445 ⇒ 1,232,445
---- ChangeStr.rbÄÚÈÝ ------------------------------------------
def change_str(num)
  str = num.to_s
  nil while str.gsub!(/(.*\d)(\d\d\d)/, '\1,\2')
  return str
end
s = change_str(1243245)
p ......
×ܼǼÊý:25; ×ÜÒ³Êý:5; ÿҳ6 Ìõ; Ê×Ò³ ÉÏÒ»Ò³ [1] [2] 3 [4] [5]  ÏÂÒ»Ò³ βҳ
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ