提交后,php
$stopName = $_GET['startStopName'];
接收后,
用echo $stopName时,有乱码,是因为页面没有编码
解决问题:
添加以下代码就可以解决问题
header('Content-Type: text/html; charset=utf-8');
header('Content-Type: text/html; charset=utf-8');