• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 众包
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






ggwudivs

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理

2018年3月22日

js/jquery去掉空格,回车,换行
摘要: Jquery:$("#accuracy").val($("#accuracy").val().replace(/\ +/g,""));//去掉空格 .replace(/\ +/g,"") //去掉空格方法$("#content").val($("#content").val().replace(/[ 阅读全文
posted @ 2018-03-22 17:53 ggwudivs 阅读(310) 评论(0) 推荐(0)
 
jqGrid 日期格式化,只显示日期,去掉小时分
摘要: {name:'operateTime',index:'operateTime', formatter:"date", formatoptions: {newformat:'Y-m-d'}, align:"center",sortable:true,width:120}, 阅读全文
posted @ 2018-03-22 17:08 ggwudivs 阅读(1283) 评论(0) 推荐(0)
 
jqGrid中的formatter,表格中值的格式化
摘要: jqGrid中对列表cell数次那个格式话设置主要通过colModel中formatter,formatoptions来设置。 基本用法: Js代码 jQuery("#jqGrid_id").jqGrid({ ... colModel: [ ... {name:'price', index:'pri 阅读全文
posted @ 2018-03-22 16:37 ggwudivs 阅读(548) 评论(0) 推荐(0)
 
解决mysql不能在查询A表的同时,更新A表的问题
摘要: 方法: 运用中间表 UPDATE 表名 SET 字段名 = '' WHERE id in (SELECT a.id FROM (SELECT id FROM 表名 WHERE ISNULL(字段名)) a) 阅读全文
posted @ 2018-03-22 14:47 ggwudivs 阅读(194) 评论(0) 推荐(0)