search

Home  >  Q&A  >  body text

PHP api returns json to extract url and jump?

The php file api has successfully returned data as shown in the picture. I added a jump code after the php file<script>top.location='<?php echo urldecode($url["url"]); ?> ';</script>I want to extract the content of couponClickUrl in the returned data and put it into the above code so that it can jump. How should I write it? Xiaobai hopes that the boss can help.

3801213fb80e7bec59d6549d3f2eb9389b506bb9.png

小玫小玫1699 days ago898

reply all(1)I'll reply

  • 翡翠原石顾问-阿瑞***

    翡翠原石顾问-阿瑞***2020-04-22 22:50:17

    Your url should be changed to couponClickUrl

    reply
    0
  • Cancelreply