Skip to content

Instantly share code, notes, and snippets.

@shepherdwind
shepherdwind / getNum.js
Created July 9, 2012 06:22
fast way to find path
/* 后端数据 */
var data = {
"10;20;30": {
price: 5,
count: 1
},
"10;20;31": {
price: 10,
count: 2
},
@shepherdwind
shepherdwind / path.js
Created March 20, 2012 22:05
a way to count which point it is availabed
"use strict";
/**
* 11 12 13 14 15
* 21 22 23 24 25
* 31 32 33 34 56
* 41 42 43 44 45
* 51 52 53 54 55
*/
//var maps = [];
var log = console && console.log;