Home > Article > Web Front-end > Instructions for using the fs.readlink method in node.js_node.js
Method description:
Read the link asynchronously.
Grammar:
Since this method belongs to the fs module, the fs module needs to be introduced before use (var fs= require(“fs”) )
Receive parameters:
path Path
callback callback, passing 2 parameters, exception err and link string returned by linkString
Source code: