How to pass JS variable to php?

前端 未结 5 767
春和景丽
春和景丽 2020-11-28 16:53

I have a javascript functions which returns a hash. I need to pass this hash to php to do stuff with it. Whats the best way to do that?

5条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-28 17:27

    Assuming you mean JavaScript function returns a hash and sends it to PHP - then AJAX

提交回复
热议问题