Closed xiongsongsong closed 10 years ago
like this:
var code = grasp.replace('equery' , 'require($str)' , function( $str ){ return path.join( __dirname , $str ) + '.js' }, '... require("./a/b") ...') //code ==> require('/User/test/a/b.js')
tks!
Good idea
like this:
tks!