emitPhotoData(outStream, person.photo); function emitPhotoData(outStream, photo) { outStream.write(`<p>title: ${photo.title}</p>\n`); outStream.write(`<p>location: ${photo.location}</p>\n`); }
emitPhotoData(outStream, person.photo); outStream.write(`<p>location: ${person.photo.location}</p>\n`); function emitPhotoData(outStream, photo) { outStream.write(`<p>title: ${photo.title}</p>\n`); }
反向操作 將敘述移至函式