`
qualenac
  • 浏览: 62187 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
文章列表
html文件为自作的一览表,可对照xml文件查询。 spac.txt为特殊字符分类表。

按钮无效函数

<script> function submitonce(theform){     //if IE 4+ or NS 6+     if (document.all||document.getElementById){         //screen thru every element in the form, and hunt down "submit" and "reset"         for (i=0;i<theform.length;i++){             var tempobj=theform.elem ...

特殊字符大全

♬✿.。.:* ☂☃ ☄ ★ ☆ ☇ ☈ ☉ ☊ ☋ ☌ ☍ ☑ ☒☢ ☸ ☹ ☺ ☻ ☼ ☽ ☾ ♠   ♡ ♢ ♣ ♤ ♥ ♦ ♧ ♨ ♩ ✙✈ ✉ ✌ ✁ ✎ ✐ ❀ ✰ ❁ ❤ ❥ ❦❧ ➳ ➽ εїз℡❣•۰•●○● ゃōゃ♥ ♡๑۩ﺴ ☜ ☞ ☎ ☏♡ ⊙◎ ☺ ☻✖╄ ...
http://blog.csdn.net/laily/archive/2004/06/24/25872.aspx 关键字:正则表达式  模式匹配 Javascript 摘要:收集一些常用的正则表达式。 正则表达式用于字符串处理,表单验证等场合,实用高效,但用到时总是不太把握,以致往往要上网查一番。我将一些常用的表达式收藏在这里,作备忘之用。本贴随时会更新。 匹配中文字符的正则表达式: [\u4e00-\u9fa5] 匹配双字节字符(包括汉字在内):[^\x00-\xff] 应用:计算字符串的长度(一个双字节字符长度计2,ASCII字符计1) String.prototype.len ...
//取得网络上的打印机 function getnetprinter() {   var obj=new ActiveXObject("WScript.Network");   var netprinter=obj.EnumPrinterConnections();   for(i=0;i<netprinter.Count();i+=2)   {     document.writeln(netprinter.Item(i)+"="+netprinter.Item(i+1));   } } //取得磁盘信息 传入参数如:getdiskinfo('c ...
今天有朋友问我关于用javascript来进行页面各表单之间的数据传递的问题,我以前也写过,不过从来没有注意,今天总结了一下,希望能够给大家一些帮助,也帮助我总结以前学过,用过的知识。     一,最简单的就是同一个网 ...
/检测文件扩展名 function EuwCheckExt(path,extList){ var ext = getFileExt(path); var cExt = extList.indexOf("," + ext + ","); if (ext == "") return -1; if (cExt){   return 1; }else{   return 0; } } //取得文件扩展名 function getFileExt(path){ var tmp = path; tmp = tmp.substrin ...
WEB開発に便利なAPI検索サイト:<o:p></o:p> http://www.gotapi.com/<o:p></o:p>
原文:http://www.olddognewtricks.co.uk/2006/09/beast.html Beast Beast is the spiffing new forum software from those two terribly clever chaps Josh Goebel and Rick Olson. Rick is already responsible for a very useful Ruby on Rails plug-in called acts_as_versioned and the very promising Mephisto blogwei ...
install script/plugin install http://svn.pragprog.com/Public/plugins/annotate_models 使い方 rake annotate_models これで、 # == Schema Information # Schema version: 13 # # Table name: categories # # id :integer(11) not null, primary key # name :string(255) # class Category < ActiveRecord::Bas ...

Acts as Authenticated

用户认证: http://technoweenie.stikipad.com/plugins/show/Acts+as+Authenticated 资料: http://www.caiwangqin.com/post/408
1. 安装ruby GetText gem install gettext 2. 修改config/environment.rb文件,加入代码: require ’gettext/rails’  3.在ApplicationController的类声明后加入对init_gettext的调用。参数是一个字符串,一般取项目名称(后面要用到的po和mo文件的文件名) ...
2007-06-13 14:54 原文:Ruby on Rails Rake Tutorial (aka. How rake turned me into an alcoholic) 引言:作为一个rails的开发者,你可能很熟悉使用rake进行你的测试,或者使用rake db:migrate运行你的migrations,但是你真的知道Rake的背后故事吗?你意识到可以自己写一个Rake任务或者一个有用的lib吗? 下面是我们使用Rake任务 ...
http://rc.org.cn/viewthread-282 skyover 发表于: 2007-7-07 23:11 来源: Ruby Community 问题描述 我们在开发rails或者ruby程序过程中经常会面临这样的问题,就是如何让我们开发出来的程序支持多国语言,而不只是英语或者中文,以及如何让rails的英文提示都变成中文的,甚至其他语言的文字。比如,当我们使用rails的校验机制对用户输入的表单数据进行校验时,我们希望呈现给用户的错误提示全部是中文的而不是中英文混杂的,甚至最好能根据用户浏览器的语言偏好信息来选择页面使用的语言文字。 有很多种方法能够实现这种需求,但是比较完整 ...
原文出自: http://my.donews.com/woodstudio/ Ruby on Rails是一个很不错的web开发框架,不过由于目前其本身对国际化的支持较差,所以需要一些辅助的东西来解决国际化问题。 我最先使用的是一个叫localization的插件,这个插件的使用说明在Ruby on Rails官方的wiki上面有,这个插件使用比较简单,不过功能比较弱。 目前使用的是Ruby-GetText,这个插件功能强大,基于GNU的gettext,详细的使用说明在 http://manuals.rubyonrails.com/read/chapter/105 上面有写,我大概提一下要 ...
Global site tag (gtag.js) - Google Analytics