AccessÊý¾Ý¿â²Ù×÷ÀàAccessHelper
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.OleDb;
using System.Collections;
/// <summary>
/// AcceHelper µÄժҪ˵Ã÷
/// </summary>
public static class AccessHelper
{
//Êý¾Ý¿âÁ¬½Ó×Ö·û´®
public static readonly string conn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + HttpContext.Current.Request.PhysicalApplicationPath + System.Configuration.ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString;
// ÓÃÓÚ»º´æ²ÎÊýµÄHASH±í
private static Hashtable parmCache = Hashtable.Synchronized(new Hashtable());
/// <summary>
/// ¸ø¶¨Á¬½ÓµÄÊý¾Ý¿âÓüÙÉè²ÎÊýÖ´ÐÐÒ»¸ösqlÃüÁ²»·µ»ØÊý¾Ý¼¯£©
/// </su ......
ÏÖÓÐһϵͳ²»¶¨Ê±ÔÚͬһĿ¼ÏÂÉú³ÉÒ»ÅútxtÎļþ,ÄÚÈÝ´ó¸ÅÈçÏÂ;
20100112_164910,6,81406392,808,113,,
Ϊ·½±ãͳ¼Æ,ÐèÒª½«ÕâЩtxtÎļþÖеÄÊý¾Ý¶ÁÈëÊý¾Ý±íÖÐ.
ÏÖÓÐÁ½ÖÖ·½·¨:
Ò»ÊÇÖ±½Ó½«Êý¾Ý¶ÁÈëµ½Êý¾Ý±íÖеÄijһÁÐÖÐ,ÔÙÓÃsql Óï¾ä²ð¿ª³É¼¸ÁÐ:
20100112_164910 6 81406392 808 113
¶þÊÇÔÚµ¼Èëʱ¾Í½«Æä²ð¿ª³É¼¸Áзֱðµ¼Èëµ½¸÷ÁÐÖÐ
Èç¹ûµÚ¶þÖÖ·½·¨¿ÉÒÔʵÏÖ,ÄÇô¶ÔÓÚϵͳµÄÐÔÄܽ«»áÊÇÒ»¸öºÜ´óµÄ°ïÖú.
ÏÂÃæ½éÉÜÎÒµÄ×ö·¨,¿ÉÄÜÊÇ×î±¿ÖØµÄÒ»ÖÖ,»¶Ó´ó¼ÒÌá³ö¸üºÃµÄ·½·¨.
ºËÐÄ·½·¨Êǵ÷ÓÃmemoµÄDelimiterÌØÐÔ. Èô°ÑDelimiterµÄÖµÉèΪ",",ÄÇôʹÓÃDelimitedTextÊôÐԿɵõ½ÓÉ","·Ö¿ªµÄ¼¸ÐÐ.
ÐèÒªÁ½¸ömemo,µÚÒ»¸ömemo½«ÎĵµÖеÄÄÚÈݶÁÈë,µÚ¶þ¸ömemo½«µÚÒ»¸ömemoÖеÄÄÚÈÝ·Ö½â³É¼¸ÐÐ.
ÈçÉÏÃæµÄÀý×Ӿͻá±ä³É:
20100112_164910
6
81406392
808
113
½ÓÏÂÀ´µÄÊÂÇé¾Í±äµÃ±È½Ï¼òµ¥ÁË.µ±È»ÕâÀïÃæÑ»·Êǿ϶¨ÉÙ²»Á˵ÄÁË.
ÏÂÃæÊÇÈ«²¿´úÂë:
µÚÒ ......
JavaScript ¿ÉËãÊÇÊÀ½çÉÏ×îÁ÷Ðеıà³ÌÓïÑÔ£¬ËüÔø±» Web ¿ª·¢Éè¼ÆÊ¦ÌùÉÏØ¬ÃεıêÇ©£¬ËäÈ»ÕæÕýµÄجÃÎÆäʵÊÇ DOM
API£¬Õâ¸ö±»´óÁ¿µÄ¿ª·¢ÓëÉè¼ÆÊ¦ËæÊÖÄéÀ´ÔöÇ¿ËûÃÇµÄ Web ǰ¶ËµÄ½Å±¾ÓïÑÔ£¬Èç½ñÔ½À´Ô½±»ÖØÊÓ£¬ËäÔòÈç´Ë£¬JavaScript
ÈÔȻӵÓкܶàÈÃÈ˷ѽâµÄ¶«Î÷¡£
1. ËüÒÔ Java ÃüÃû£¬µ«²¢²»ÊÇ Java
Ëü×î³õ½Ð Mocha£¬ ½ÓןÄÃûΪ LiveScript£¬×îºó²ÅÈ·¶¨ÃüÃûΪ JavaScript£¬¸ù¾ÝÀúÊ·¼Ç¼£¬Java µÄÃüÃûÓë
Netscape ºÍ Sun Ö®¼äµÄºÏ×÷Óйأ¬×÷Ϊ½»»»Ìõ¼þ£¬Netscape ÔÚËûÃDZ¸ÊÜ»¶ÓµÄä¯ÀÀÆ÷Öд´½¨ÁË Java
ÔËÐÐʱ¡£ÖµµÃÒ»ÌáµÄÊÇ£¬Õâ¸öÃû×ֵijǫ̈¼¸½üÒ»¸öÍæÐ¦£¬ÒªÖªµÀ£¬LiveScript ºÍ Java ÔÚ¿Í»§¶Ë½Å±¾·½Ãæ´æÔڵжԹØÏµ¡£
²»¹ÜÔõô˵£¬ÈËÃǺóÀ´²»µÃ²»Ò»ÔÙ³ÎÇåµÄÒ»¼þʾÍÊÇ£¬JavaScript ºÍ Java ºÁÎÞ¹ØÏµ¡£
2. Null ÊǸö¶ÔÏó£¿
¿´¿´Õâ¶Î´úÂ룬Ëü·µ»ØµÄÊÇ object¡£
ÕâʵÔÚÁîÈ˷ѽ⣬¼ÙÈç null ±íʾ¿ÕÖµ£¬ËüÔõô¿ÉÒÔÊǶÔÏ󣿼òµ¥Ëµ£¬ËüÊÇ JavaScript ×î³õ°æ±¾µÄ´íÎó£¬Õâ¸ö´íÎóÉõÖÁ±»Î¢ÈíµÄ JScript Ö±½Ó½èÓá£
3. NaN !== NaN
NaN£¬±íʾһ¸ö·ÇÊý×ÖµÄÖµ£¬È»¶øÎÊÌâÊÇ£¬NaN²»µÈÓÚÈκζ«Î÷£¬ÉõÖÁ²»µÈÓÚËü×Ô¼º¡£
ÕâÏÔÈ»²»¶Ô£¬ÊÂʵÉÏ£¬Èç¹ûÒªÅжÏÒ»¸öֵȷʵÊÇ NaN£¬ÄãÐèÒªÓà isNaN() ......
Ê×ÏÈÔÚbodyÖмÓÈëÒÔÏÂHTMLÄÚÈÝ£º
<div id="panel">
<div id="top">
<ul id="menu">
<li id="1">Home</li>
<li id="2">IntelligenceFacts</li>
<li id="3">Research</li>
<li id="4">Perception</li>
<li id="5">Robotics</li>
<li id="6">Cognitive Science</li>
</ul>
</div><!-- END #top -->
&nb ......
to make a note that I love JavaScript. This article is only meant for some fun, and for us to be aware of some its short-comings.
1. The Name. JavaScript is NOT Java
We'll start with a fun jab at the name choice. While it was originally called Mocha, and then LiveScript, it was later changed to JavaScript. According to history, its similarities to the name Java was the result of a collaboration between Netscape and Sun, in exchange for Netscape bundling the Java runtime within their popular browser. It's also been noted that the name came, almost as a joke, due to the rivalry between LiveScript and Java for client-side scripting.
Nevertheless, it resulted in thousands of "JavaScript has nothing to do with Java" comments in forums across the web!
2. Null is an Object?
Consider this...
view plaincopy to clipboardprint?
console.log(typeof null); // object
console.log(typeof null); // object
This makes zero sense. If null is the absence of a value, t ......
//´´½¨Ò»¸öеÄÔªËØ½Úµã£¬ÔªËØÃûʹÓÃsTagName¶¨Òå
oElementNode = document.createElementNode(sTagName);
//´´½¨Ò»¸öеĽڵ㣬½ÚµãÃûʹÓÃsTextValue¶¨Òå
oTextNode = document.createTextNode(sTextValue);
//ÎªÔªËØ¸³Ò»¸öеÄÊôÐÔ£¬ÊôÐÔÃûʹÓÃsName
oAttribute = document.createAttribute(sName);
//´´½¨Ò»¸öеÄ×¢Êͽڵ㣬עÊÍÄÚÈÝʹÓÃsData¶¨Òå
oComment = document.createComment(sData);
//´´½¨Ò»¸öеÄÎĵµÆ¬¶Î£¬¸Ã·½·¨Ã»ÓвÎÊý
oNewDoc = document.createDocumentFragment(); ......