Home  >  Q&A  >  body text

php - 想用AJAX做一个二级联动,想请问大神们我代码是否有写错

ajax:代码][2]

html代码:

控制器代码:

页面效果:

PHP中文网PHP中文网2713 days ago343

reply all(2)I'll reply

  • 仅有的幸福

    仅有的幸福2017-05-16 13:05:09

    Assign variables in the screenshot. I don’t know how think PHP handles it. Let’s write it like this

    var _url = "<?=U:(Form.form)?>"

    reply
    0
  • 世界只因有你

    世界只因有你2017-05-16 13:05:09

    U:(form/form) 要用 <?php ?> Wrap it up.
    You can use F12 to see the ajax request details

    reply
    0
  • Cancelreply