thinkphp5中参数跳转的几种方式

mac2025-02-04  3

一、表单提交
//无参数 <form action="{:url('Index/index/edit')}" type="post">
二、a标签链接
// 控制器中传过来的参数 <a href="{:url('Date/index/index'), ['id' => $item['id']}">
三、js中的location跳转
// js中的变量参数 data = 'aaaa'; url = "{:url("Index/index/edit")}" + "?param=" + data; location.href = url;
最新回复(0)