$ npm install jquery
test.js
require("node-jquery");
a = ['aaa', 'bbb', 'ccc', 'ddd'];
$.each(a, function(key, val) { console.log(key + " => " + val); });
Run :
$ node test.js
0 => aaa
1 => bbb
2 => ccc
3 => ddd
Reference :
jquery
沒有留言:
張貼留言