How do you read a specific line, say line 3, from an external file using jquery or javascript?
many thanks.
- Read the file using
jQuery.get
- Split the read content by
\n
or\r\n
- Fetch the item for the corresponding row from the resultant array
How do you read a specific line, say line 3, from an external file using jquery or javascript?
many thanks.
jQuery.get
\n
or \r\n
精彩评论