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
Random.extend({ | |
constellations: ['白羊座', '金牛座', '双子座', '巨蟹座', '狮子座', '处女座', '天秤座', '天蝎座', '射手座', '摩羯座', '水瓶座', '双鱼座'], | |
constellation: function(date){ | |
return this.pick(this.constellations) | |
} | |
}) | |
Random.constellation() | |
// => "水瓶座" | |
Mock.mock('@CONSTELLATION') | |
// => "天蝎座" |
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
{ | |
rurl.toString(): { | |
rurl: rurl, | |
template: template | |
}, | |
... | |
} |
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
{ | |
"name": "flare", | |
"children": [ | |
{ | |
"name": "analytics", | |
"children": [ | |
{ | |
"name": "cluster", | |
"children": [ | |
{ |
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
<style> | |
.a\.c\/b { | |
color: red; | |
} | |
</style> | |
<div class="a.c/b"> | |
佛主对虾说:阿弥陀佛,煮红了,就不疼了。 | |
</div> |
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
<div id="ajaxqueue"></div> | |
<script> | |
$('#ajaxqueue') | |
.queue( 'ajax', function( next ){ | |
var $this = $(this).append('$.ajax 1 loading...'); | |
$.ajax( '/queue.do?method=queue1', { dataType: "json" } ) | |
.done( function(){ $this.append('done!<br>'); }) | |
.done( function(){ next(); } ) // 请求成功后执行下一个 | |
.fail( function(){ $this.append('fail!<br>'); }); | |
} ) |
NewerOlder