`
ynial
  • 浏览: 225510 次
  • 来自: ...
社区版块
存档分类
最新评论
文章列表
【node.js】  一个神奇的XX 呵呵 :) 不知道怎么形容他才好! 【express】 是node.js 开发web应用程序的框架 开发环境:XP 大家共同进步吧 :) 一:前期准备: 1:下载node.js 选择适合你的操作系统下载 http://nodejs.org/download/ 2:安装 ...
在开发中难免碰到图片上传问题!图片上传问题很好解决,而上传到服务器上的图片尺寸大小不一,使表现层无法使用统一的规格显示被上传的图片。 那么被上传的图片的 等比例缩 与等比率放 还有等比率截图 可能会给我们的 ...
前些日子写了个源于jquery grid插件Flexigrid  算不上例子的一片文章。 为了能更快的使用这个东东 。。 今天做了一个相对比较详细的例子. 对一个工作信息表操控的例子。 第一步:创建数据库 /* MySQL Data Transfer Source Host: localhos ...
$(function(){ function getURLParameter(name) { return decodeURI( (RegExp(name + '=' + '(.+?)(&|$)').exec(location.search)||[,""])[1] ); } var path = getURLParameter("path"); if (path != "") { $("#menu li a").each(function() { if ...
局部代码:模拟一个小登录的测试! 刚开始的时候忘记这NODE.JS异步问题了,怎么测都不行! 后来一顿回调啊~ OK了~!  这种方法代码的可读性很差,嵌套太多了。等等吧 等过几天再研究一下 ,解决这异步的问题!~ index.js var um = require('./modules/user-manager'); exports.index = function(req, res){ res.render('index', { title: 'Test Login DEMO' }); um.findUserByEmail('tom@gmail.com', fun ...
node.js install postgreSQL 初体验 1:安装postgresql 2:命令行: npm install pg ....... 【第一个难题】 我们需要安装python 【第二个难题】 这个错误的原因很令人头痛,查阅了很多资料无果。 尝试着在环境变量path里添加 C:\Program Files\PostgreSQL\9.2\bin 后继续无果 在自定义path继续中 添加C:\Program Files\PostgreSQL\9.2\bin 后OK ---------------------------------------------------- ...
opencart 一个不错的电商开源框架,一个小问题opencart 商品说明乱码 简单看了一下源码, 在opencart\catalog\controller\product\category.php 中 找到 'description' => $this->msubstr(strip_tags(html_entity_decode($result['description'], ENT_QUOTES, 'UTF-8')), 0, 100) ...', ' 修改一下就OK了 windows 下 开发 确保PHP.INI 的 extension=php_mbstring.dll ...
【前提】     UITableViewCell 原本就有他自己的imageView ,希望在这个imageView上再添加一个icon,     textLabel要缩进 icon 寛的大小。 【解决方案】   UIImage *icon = [UIImage imageNamed:item.icon]; UIImageView *imgview = [[UIImageView alloc]initWithImage:icon]; imgview.frame = CGRectMake(5, 10, 15, 21); ...
【release问题的解决】     TARGETS -> Compile Sources 找到包含 release的文件 双击 弹出对话框 在对话框里 添加 -fno-objc-arc  ;   问题就解决了~  :)
【UIWebView 的使用】 1:引用外部连接 [super viewDidLoad]; CGRect webFrame = CGRectMake(0.0, 0.0, 320.0, 460.0); UIWebView *webView = [[UIWebView alloc] initWithFrame:webFrame]; [webView setBackgroundColor:[UIColor whiteColor]]; NSString *urlAddress = @"http://www.baidu.com"; ...
收藏一个iphone开发的站 http://mobiforge.com/developing/story/build-web-apps-iphone-using-dashcode http://www.iphoneexamples.com/
【UILabel 自动换行】: UIView *footerView = [[UIView alloc] initWithFrame:CGRectMake(10, 100, 300, 180)]; UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(10, 100, 300, 150)]; label.text = @"where are you? where are you? where are you? where are you? where are you? where are you? ...
【UINavigationController 设置背景图片的方法】 下列代码测试通过,可以显示背景图片 self.navController.navigationBar.tintColor = [UIColor blackColor]; 下列代码测试 没有出背景颜色 self.navController.navigationBar.backGroundColor = [UIColor blackColor];
UITableView 1:如果一个类继承了 UITableView 那么怎么处理这个UITableView的背景图片呢? self.backgroundView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:imageName]]; 原来是这样处理的 self.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:imageName]]; 但是一旦这样处理背景图片 当这个表格和屏幕顶部有间距的时候 背景图片会串 ...

正则表达式

    博客分类:
  • java
    String envPattern = "学校环境</h2></span>([\\s\\S]*?)<ul id=\"huanjing\">([\\s\\S]*?)<li>([\\s\\S]*?)</li>"; 用这个表达式解决 带换行的数据抓取问题
Global site tag (gtag.js) - Google Analytics