例
required擬似クラスに対してスタイル定義をすることで、required属性が設定された入力欄のスタイルを変更出来る。input:required { background-color: lightcoral; }
input:required { background-color: lightcoral; }
<input type="date" >
<input type="time" >
<input type="month" >
hoge = k1: 'v1' k2: 'v2' for key, value of hoge console.log key, ' = ', value class Hoge prop1: 'prop1' prop2: 'prop2' for key, value of new Hoge() console.log key, ' = ', value
k1 = v1 k2 = v2 prop1 = prop1 prop2 = prop2
<!DOCTYPE html> <html ng-app=""> <head> <meta charset="utf-8" /> <title>AngularJSでHello World!!</title> </head> <body> <div ng-controller="HelloController"> Your name: <input type="text" ng-model="name"/> <hr /> Hello {{name || "World"}}! </div> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.10/angular.min.js"></script> <script src="hello.js"></script> </body> </html>
@HelloController = ($scope) -> $scope.name = 'World'
The provided regular expression is using multiline anchors (^ or $), which may present a security risk. Did you mean to use \A and \z, or forgot to add the :multiline => true option?
validates :image_url, allow_blank: true, format: { with: %r{\.(gif|jpg|png)$}i, message: 'はGIF、JPG、PNG画像のURLでなければなりません' }
validates :image_url, allow_blank: true, format: { with: %r{\.(gif|jpg|png)\z}i, message: 'はGIF、JPG、PNG画像のURLでなければなりません' }
lines = "line1\nline2" # line1とline2を含め文字列全体でマッチする puts /\A.+1.+2\z/m === lines # line1だけでマッチする puts /^.+1$/ === lines
上位N番までの問合せの実行に、オフセットと、戻される行数または行数の割合を指定できます。
select * from table1 order by id offset 10 rows fetch first 5 rows only;
select * from table1 order by id offset 10 rows fetch first 5 rows with ties;