摘要: 原文http://hellodrupal.info/node/149模块文件结构:sitemode.infositemode.moduletest_ajax.jssitemode.info; $Id$name = Sitemoddescription = A content type for jokes.package = Pro Drupal Developmentcore = 6.xsitemode.module<?phpfunction sitemod_menu() {// 建立一个模块 sitemod $items = array(); $items['ajax' 阅读全文
posted @ 2012-11-26 15:03 wangkangluo1 阅读(1962) 评论(0) 推荐(0) 编辑
摘要: 参考:http://www.williamlong.info/archives/433.htmlhttp://www.cnblogs.com/skylaugh/archive/2009/08/17/1548175.html推荐在线正则生成网站txt2re正则表达式30分钟入门教程正则工具regexbuddy非负整数(正整数 + 0) "^\d+$"、正整数 "^[0-9]*[1-9][0-9]*$"非正整数(负整数 + 0) "^((-\d+)|(0+))$" //负整数 "^-[0-9]*[1-9][0-9]*$" 阅读全文
posted @ 2012-11-26 00:06 wangkangluo1 阅读(14439) 评论(1) 推荐(0) 编辑