var grade = "Preminum";
switch(grade){
case "Regular":
alert("It is ok");
case "Priminum":
alert("It is ok");
$.ajax({
url: "http://query.yahooapis.com/v1/public/yql",
// the name of the callback parameter, as specified by the YQL service
jsonp: "callback",
// tell jQuery we're expecting JSONP
dataType: "jsonp",
// tell YQL what we want and that we want JSON
data: {
q: "show tables",
参考自ghostchina
<div class="demo">
<h1>{{name}}</h1>
{{content.title}}
class Duck def quack end
def fly end
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'benchmark' | |
puts Benchmark.measure { 10000.times { print "." } } | |
Benchmark.bm do |x| | |
x.report('some test') { | |
N.times { some_test } | |
} | |
end |
教材:http://www.codeschool.com/courses/css-cross-country
- inline style
- 在