how to create an array by reading text file in javascript

后端 未结 5 1157
日久生厌
日久生厌 2020-12-22 08:35

I have a text file with profanity word separated by comma (,). Now I have to create an array by reading this text file, each and every profanity word should be stored into t

5条回答
  •  清歌不尽
    2020-12-22 09:27

    you can't do IO operations from Javascript,

    you can probably try ajax

    http://api.jquery.com/jQuery.ajax/

    or jquery load

    http://api.jquery.com/load/

提交回复
热议问题