![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
js/Jquery
binglong180
这个作者很懒,什么都没留下…
展开
-
常用Js,JQuery
1、跳转 window.location.href="/m/login?toUrl="+window.location.href;原创 2018-03-21 17:57:56 · 116 阅读 · 0 评论 -
js页面跳转
1、页面跳转window.location.href="/m/front/invest/investList"2、获取URL中参数var type=location.search.substr(1).split("=")[1];原创 2018-04-17 17:52:14 · 112 阅读 · 0 评论 -
使用validate进行表单验证
1、Ajax异步请求$().ready(function() { $("#saveProject").validate({ onkeyup: false, //失去焦点验证 onfocusout: function(element) { $(element).valid(); }, rules: { reality_name:{ requ...原创 2018-04-17 17:59:28 · 2209 阅读 · 0 评论 -
Js JQuery 遍历列表获取对应行的数据进行运算
需求项目中有个列表,选中后计算对应行的数据,其实很多时候都用到,现在总结一下为以后需要的时候借鉴。 页面HTML代码<div class="project-list"> #{list items:invests, as:'invest'} <div class="project-list-item"原创 2018-06-25 17:12:15 · 4235 阅读 · 0 评论 -
laydate插件回调函数及触发方式
/** * 时间控件 */laydate.render({ elem: '#endDate' // 触发的标签 ,trigger: 'click' // 事件类型 ,done: function(value, date, endDate){ // 回调函数 $("#endDate").focus(); }});...原创 2019-02-21 17:36:49 · 14408 阅读 · 0 评论 -
JQuery 获取当前年、月、日、星期、时间
使用JQuery获取当前时间年.月.日,星期,时:分:秒$(function(){ setInterval(updateTime, 1000); updateTime();})function updateTime() { var date = new Date(); this.year = date.getFullYear(); this.month = date...原创 2019-02-18 16:25:02 · 18892 阅读 · 0 评论