$ 0 0 /**foo函数返回promise@param {string} value 参数名@return {promise} */ function foo( value ) { return new Promise(( resolve, reject ) => { fs.readFile(“value”, ( err, data ) => { if ( err ) { reject( err ) } else { resolve( data ) } }) }) }