ajax请求Url加参数的使用方法
2016-03-14 13:06
471 查看
var cId = $(this).data('claim-id'); var adoptUrl = "<?php echo $this->createUrl('claim/applyAdopt',array('t'=>time())); ?>";//还可以使用占位符 然后进行替换 //发起请求 $.ajax({ url: adoptUrl+'?cid='+cId, type: 'post', dataType: 'json', success:function(data){ if(data.data.status == 200){ window.location.reload(); }else{ } } }); return false;
相关文章推荐
- ViurtualBox配置虚拟机Linux的网络环境
- Visual Stuido 2015 Community 使用 GitHub 插件
- 不小心打开了show children怎么关闭的问题
- Eclipse护眼背景色
- 58. Length of Last Word
- 38. Count and Say
- 27. Remove Element
- 26. Remove Duplicates from Sorted Array
- Linux下简单线程池的实现
- Web系统大规模并发:电商秒杀与抢购
- ModelMap和ModelAndView
- Dom4j工具类
- 《我是一只IT小小鸟》读后感
- 21. Merge Two Sorted Lists
- 19. Remove Nth Node From End of List
- Leetcode 13. Roman to Integer
- java jps命令
- json 筛选数据 $.grep过滤数据
- UITableView——点击某一行移动到指定位置
- 解决sublime3,python3不能输出中文问题