execute js function by php command line

前端 未结 2 1035
失恋的感觉
失恋的感觉 2021-01-27 12:17

I am working in Codeigniter. I have a view, book.php, with a js file, frontend_book.js, running behind it containing a function to sync the calendar.

Snippet from front

2条回答
  •  伪装坚强ぢ
    2021-01-27 13:14

    You can't make js run from the command line. It only runs in browsers and other environments set up to execute it. Everything you want to do you'll have to do in PHP or another language that runs on the command line.

提交回复
热议问题