学习
1.jquery设置图片宽度百分比
$("#img").css({"width":"100%"});或
$("#img").css("width","100%");或
$("#img").width("100%");或
$("#img").attr("style","width:100%;");
原文:http://zhidao.baidu.com/link?url=AIj3qrsFKq6AAWYmQA9b1AhZ95HMoAmIoyJ-6wHjt2hRopnZTiqsoqZ_FpxsgTP76ahqJB6gHg_II_xX_aUBdcGu7piMBjzLNA4yc69Fk6C
2.WebServices
WebServices 提供一个建立分布式应用的平台,使得运行在不同操作系统和不同设备上的软件,或者是用不同的程序语言和不同厂商的软件开发工具开发的软件,所有可能的已开发和部署的软件,能够利用这一平台实现分布式计算的目的。WebServices的思想是:使得应用程序也具有 Web 分布式编程模型的松散耦合性。关注的只是通过协议如HTTP来传输 XML。
SOAP 即 Simple Object AccessProtocol 也就是简单对象访问协议。
WSDL 即Web Services Description Language也就是 Web 服务描述语言。是基于 XML的用于描述 Web 服务以及如何访问 Web 服务的语言。
UDDI 即 Universal Description,Discovery and Integration,也就是通用的描述,发现以及整合。是一种目录服务,企业可以通过 UDDI 来注册和搜索 Web 服务。
参考:http://blog.csdn.net/zhuizhuziwo/article/details/8153327
http://www.cnblogs.com/bugY/archive/2011/10/09/2203627.html
http://www.phpstudy.net/e/soap/soap_intro.html
http://lizongwei.blog.163.com/blog/static/18868029820132685318415/
3.excel单元格内回车 Alt+Enter
4.http://www.111cn.net/wy/html5/89324.htm
http://www.thinkphp.cn/code/781.html
http://www.cnblogs.com/manongxiaobing/p/4720568.html
5.限制文本框只能输入数字
onkeypress = 'return /^\d$/.test(String.fromCharCode(event.keyCode||event.keycode||event.which))'
oninput= 'this.value = this.value.replace(/\D+/g, "")'
onpropertychange='if(!/\D+/.test(this.value)){return;};this.value=this.value.replace(/\D+/g, "")'
onblur = 'this.value = this.value.replace(/\D+/g, "")'/>
http://www.cnblogs.com/Peter-Zhang/archive/2011/10/22/2221147.html
http://www.cnblogs.com/duanhuajian/p/3398904.html
<!DOCTYPE HTML > <html> <head> <title>jquery.autocomplete.js 实例</title> <meta charset="utf-8"> <script type="text/javascript" src="js/jquery.js"></script> <script type='text/javascript' src='js/jquery.autocomplete.js'></script> <link rel="stylesheet" type="text/css" href="css/main.css" /> <link rel="stylesheet" type="text/css" href="css/jquery.autocomplete.css" /> <style type="text/css"> p{margin:8px;} </style> </head> <body> <h1 id="banner"><a href="http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/">jQuery Autocomplete Plugin</a> Demo</h1> <div id="content"> <form autocomplete="off"> <p> <label>City1:</label> <input type="text" id="city1" /> </p> <p> <label>City2:</label> <input type="text" id="city2" /> </p> <p> <label>Tags:</label> <input type="text" id='tags' /> </p> <p> <label>E-Mail:</label> <input type="text" id="email" /> </p> </form> <h3>Result:</h3> <ol id="result"></ol> </div> </body> </html> <script type="text/javascript"> $(function() { var cities = [ "Aberdeen", "Ada", "Beaverdam", "Bedford","Cuyahoga Falls", "Dayton", "De Graff", "Fairfield", "Fairpoint", "Groveport", "Grover Hill","Hamden", "Hamersville", "Irondale", "Ironton", "Jacksontown","Kirby", "Kirkersville", "Lafayette", "Lafferty", "Munroe Falls", "Murray City", "Oberlin", "Oceola", "Paris", "Parkman", "Ravenna", "Rawson", "Saint Louisville", "Toledo", "Tontogany", "Wakeman", "Walbridge", "Yorkshire", "Yorkville", "Zoar" ]; var emails = [ { name: "Peter Pan", to: "peter@pan.de" }, { name: "Molly", to: "molly@yahoo.com" }, { name: "Forneria Marconi", to: "live@japan.jp" }, { name: "Master <em>Sync</em>", to: "205bw@samsung.com" }, { name: "Dr. <strong>Tech</strong> de Log", to: "g15@logitech.com" }, { name: "Don Corleone", to: "don@vegas.com" }, { name: "Mc Chick", to: "info@donalds.org" }, { name: "Donnie Darko", to: "dd@timeshift.info" }, { name: "Quake The Net", to: "webmaster@quakenet.org" }, { name: "Dr. Write", to: "write@writable.com" } ]; $("#tags").autocomplete(["c++", "java", "php", "coldfusion", "javascript", "asp", "ruby", "python", "c", "scala", "groovy", "haskell", "pearl"]); $("#city1").autocomplete(cities); $("#city2").autocomplete(cities, { minChars: 0, //至少输入的字符数,default:1; width: 220, //下拉框的宽度,default:input元素的宽度 max: 10, //下拉项目的个数,default:10 scrollHeight: 300, // 下拉框的高度, Default: 180 scroll: true, //当结果集大于默认高度时,是否使用滚动条,Default: true multiple: false, //是否允许输入多个值. Default: false }); $("#email").autocomplete(emails, { minChars: 0, width: 310, matchContains: "word", autoFill: false, formatItem: function(row, i, max) { return i + "/" + max + ": \"" + row.name + "\" [" + row.to + "]"; }, formatMatch: function(row, i, max) { return row.name + " " + row.to; }, formatResult: function(row) { return row.to; } }); function log(event, data, formatted) { $("<li>").html( !data ? "No match!" : "Selected: " + formatted).appendTo("#result"); } $(":text").result(log) //被选中的插入Result }); </script>