摘要: function FormatJSON(Str) { try{ Str = Str.replace(/\\/g, ""); Str = Str.replace(/(^\"{1})|(\"{1}$)/g, ""); Str = Str.replace(/(^(null\(){1})|((\)){1}$ 阅读全文
posted @ 2016-06-28 14:49 溜溜达达 阅读(381) 评论(0) 推荐(0) 编辑
摘要: var newtemp=[ { title: '北京市', money: '11' }, { title: '天津市', money: '11' }, { title: '山东省', money: '11'}, { title: '河北省', money: '11'}, { ... 阅读全文
posted @ 2015-11-02 15:35 溜溜达达 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 之前用uuid 因为太长改用16位因此在网上找到一下这种做法,年月日截取 时间戳 在加随机数 生成一个订单;//获取年份var date=['J','F','C','D','E','B','H','I','A'];//console.log((new Date().getTime()).toStri... 阅读全文
posted @ 2015-10-14 15:18 溜溜达达 阅读(534) 评论(0) 推荐(0) 编辑
摘要: var http = require('http');var sio = require('socket.io');var fs = require('fs');var querystring = require('querystring');var comModel = require('./mo... 阅读全文
posted @ 2015-09-08 10:19 溜溜达达 阅读(462) 评论(0) 推荐(0) 编辑
摘要: UIViewController+BackButtonHandler.h#import @protocol BackButtonHandlerProtocol @optional// Override this method in UIViewController derived class to ... 阅读全文
posted @ 2015-08-06 17:34 溜溜达达 阅读(382) 评论(0) 推荐(0) 编辑
摘要: 转载http://www.ithao123.cn/content-41081.html使用npm安装一些包失败了的看过来(npm国内镜像介绍)这个也是网上搜的,亲自试过,非常好用!镜像使用方法(三种办法任意一种都能解决问题,建议使用第三种,将配置写死,下次用的时候配置还在):1.通过config命令... 阅读全文
posted @ 2015-08-04 11:23 溜溜达达 阅读(226) 评论(0) 推荐(0) 编辑
摘要: UIBarButtonItem *updateButton = [[UIBarButtonItem alloc] initWithTitle:@"修改" style:UIBarButtonItemStylePlain target:self action:@selector(updateInfo)]... 阅读全文
posted @ 2015-07-06 13:32 溜溜达达 阅读(414) 评论(0) 推荐(0) 编辑
摘要: - (void)scrollViewWillBeginDragging:(UIScrollView *)scrollView{ //拖动前的起始坐标 startContentOffsetX = scrollView.contentOffset.x; }- (void)scrollViewWil... 阅读全文
posted @ 2015-06-29 10:46 溜溜达达 阅读(1910) 评论(0) 推荐(0) 编辑
摘要: l来自:http://blog.csdn.net/wmqi10/article/details/8297316做IOS开发时,难免会遇到输入框被键盘遮掩的问题。上网上搜索了很多相关的解决方案,看了很多,但是由衷的觉得太麻烦了。 有的解决方案是将视图上的所有的东西都添加到一个滚动视图对象( UIScr... 阅读全文
posted @ 2015-05-03 17:13 溜溜达达 阅读(1125) 评论(0) 推荐(0) 编辑
摘要: import org.apache.commons.lang3.StringUtils;import org.apache.xbean.spring.context.ClassPathXmlApplicationContext;import com.opensymphony.xwork2.inter... 阅读全文
posted @ 2015-04-14 14:28 溜溜达达 阅读(189) 评论(0) 推荐(0) 编辑