页面跳转多种方法(加传参)
生活随笔
收集整理的這篇文章主要介紹了
页面跳转多种方法(加传参)
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
onclick="javascript:location.href='/HelpCenter/HelpCenter/'"
更多專業(yè)前端知識(shí),請(qǐng)上 【猿2048】www.mk2048.com
?
<a href="/HelpCenter/HelpCenter">幫助中心</a>?點(diǎn)擊頁(yè)面返回上一頁(yè):
onclick="javascript:window.history.go(-1);?
********************************************************************************************************************
<foreach name="news" item="ne"><tr height="37" style="cursor:pointer;" onclick="javascript:location.href='HelpCenter/PlatDetail/id/{$ne.id}/nid/gonggao'"><td class="padlt">{$ne.name}</td><td class="padrt">{$ne.publish}</td></tr> </foreach> public function index(){$this->assign('title','index');/*平臺(tái)公告*/$curl=new CurlController();$data=array('CmdId'=>'NewsList','Token'=>'','PostDetails'=>json_encode(array('nid'=>'gonggao','page'=>1,'listRows'=>'5',)));$re=$curl->SendCurl($data);if ($re['RespCode'] === '000'){$re=$re['AcctDetails'];foreach($re as $key=>$value){$re[$key]['publish']=substr($re[$key]['publish'],0,10);$re[$key]['name']=mb_substr($re[$key]['name'],0,17,'utf-8');}//var_dump($re);$this->assign('news',$re);}?
更多專業(yè)前端知識(shí),請(qǐng)上 【猿2048】www.mk2048.com
總結(jié)
以上是生活随笔為你收集整理的页面跳转多种方法(加传参)的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: jquery可见性选择器(综合)
- 下一篇: jquery简单原则器(匹配索引为指定值