タグ

関連タグで絞り込む (0)

  • 関連タグはありません

タグの絞り込みを解除

coffeescriptに関するsh4869のブックマーク (2)

  • CoffeeScript Cookbook » Home

    Welcome to the CoffeeScript Cookbook! CoffeeScript recipes for the community by the community. Head over to the Contribute page and see what you can do to help out!

  • 基本操作逆引きリファレンス - CoffeeScript

    操作逆引きリファレンス(CoffeeScript) Node.jsと、現在使われているほとんどのブラウザで共通して使えるメソッドや文法を、用途ごとにまとめて紹介します。 文字列 文字列を作る 文字列は" "または' 'で囲います。" "の中で"を使ったり、' 'の中で'を使うには、\でエスケープします。 "abc" 'abc' # 以下2つはどちらの書き方でも同じ意味 "I can't say \"no.\"" 'I can\'t say "no."' 文字列に式を埋め込む " "内では#{ }を使って、式や変数の値を埋め込むことができます。 "1 + 1 = #{1 + 1}" # => '1 + 1 = 2' 文字数を取得する 文字列.lengthは、文字列の文字数を返します。 "abcいろは".length # => 6 文字列を数値に変換する parseInt(文字列, 10)

  • 1