ÓÃJavascriptÁ¬½ÓAccessÊý¾Ý¿âµÄ·½·¨
±¾ÎĽéÉÜjavascriptÁ¬½ÓaccessÊý¾Ý¿âµÄ·½·¨¡£Õâ¶Î´úÂëÔÚ±¾µØ¿ÉÒÔÕý³£ÔËÐУ¬ÔÚÏßÔòÐèÒª×ã¹»µÄȨÏÞ¡£ÓÉÓÚ²ÉÓÃAccessÊý¾Ý¿â£¬ËùÒÔ²¢²»Ê¹Óñê×¼µÄSQLÓ﷨ʹÓÃʱ¡£ÐèҪעÒâ¡£
Õ⼸Ìì·ÑÁËͦ´óÁ¦ÆøÔÚÍøÉϲéÕÒjavascriptÁ¬½ÓaccessÊý¾Ý¿âµÄ·½·¨£¬¾¹ýÕûÀí×ܽᣬÖÕÓÚд³öÒ»¶ÎÄܹ»ÓÐЧִÐеĴúÂë¡£
µ«ÊÇÕâ¶Î´úÂëÔÚ±¾µØ¿ÉÒÔÕý³£ÔËÐУ¬Ò»µ©·Åµ½Ãâ·Ñ¸öÈË¿Õ¼äÉϾÍû·¨Ö´ÐÐÁË£¬Ö÷ÒªÔÒò¾ÍÊDzÙ×÷ȨÏÞ²»¹»£¬ÓÉÓÚÖ»Ö§³Ö¾²Ì¬Ò³ÃæµÄÃâ·Ñ¿Õ¼ä¶àÊý¶¼
×÷Á˷dz£ÑϸñµÄÏÞÖÆ£¬ËùÒÔÎÞÂÛÊÇÓÃmdbµÄ·½Ê½£¬»¹ÊǶÁд´¿Îı¾ÎļþµÄ·½Ê½¶¼Ã»°ì·¨Í¨¹ý£¬¶øÓÉÒ³Ã汨³öjs´íÎó¡£¹úÍâµÄһЩÃâ·Ñ¿Õ¼ä£¬Ö±½Ó¾Í½ûÖ¹mdbÕâÑùÀ©Õ¹ÃûµÄÎļþÉÏ´«¡£
ËäȻûϣÍûÔÚ´¿¾²Ì¬Ò³ÃæµÄÃâ·Ñ¿Õ¼äÉÏ×÷×Ô¼ºµÄ¼ÆÊýÆ÷»òÊÇÁôÑ԰棬µ«ÊÇÕâ¶Î³ÌÐòÒ²Ðí»¹ÊǶÔһЩÅóÓÑÓÐÓô¦£¬Ð´³öÀ´¹©¸÷λÑо¿Ò»Ï¡£
Îļþ¹¹³É£º
AccessÊý¾Ý¿âÃûΪ MyData.Mdb£¬ ÀïÃ潨ÁËÒ»¸öÃûΪcountµÄ±í£¬±íÓÉÁ½¸ö ×Ö¶Î×é³É£º IDºÍCOUNT£¬±íÀïÓÐÒ»ÌõÊý¾Ý£º ('count','100')¡£
Îı¾ÎļþÃûΪ count.txt£¬ÀïÃæËæ±ãдÈëÒ»¸öÊý×Ö¡£
¾²Ì¬Ò³ÃæÃûΪCnt.htm¡£
ÒÔÉÏ3¸öÎļþ¶¼·ÅÔÚͬһĿ¼Ï¡£
ÓÉÓÚ²ÉÓÃAccessÊý¾Ý¿â£¬¶øËü²ÉÓ÷DZê×¼SQLÓï·¨£¬ËùÒÔҪעÒâÔÚ±íÃûºÍ×Ö¶ÎÃûÉÏÐèÒª¼Ó·½À¨ºÅ£º []
ÏÂÃæÊÇÒ³ÃæÀïµÄ´úÂ룺ÆäÖÐgetCountfromDB·½·¨ÊǶÔAccessÊý¾Ý¿â½øÐвÙ×÷£¬getCountfromTxt·½·¨ÊǶÔtxt´¿Îı¾½øÐвÙ×÷£¬ÕâÁ½¸ö·½·¨¶¼ÔÚ±¾µØÖ´ÐÐͨ¹ý¡£
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <TITLE> New Document </TITLE> <META NAME="Generator" CONTENT="EditPlus"> <META NAME="Author" CONTENT=""> <META NAME="Keywords" CONTENT=""> <META NAME="Description" CONTENT=""> <SCRIPT LANGUAGE="JavaScript"> <!-- function getCountfromDB() { //ÒÔµ±Ç°Ò³ÃæÎļþΪ»ù´¡£¬ÕÒµ½ÎļþËùÔڵľø¶Ô·¾¶¡£ var filePath = location.href.substring(0, location.href.indexOf("Cnt.htm")); var path = filePath + "MyData.mdb"; //È¥µô×Ö·û´®ÖÐ×îÇ°ÃæµÄ"files://"Õâ8¸ö×Ö·û¡£ pathpath = path.substring(8); var updateCnt = 0; //Éú³É²éѯºÍ¸üÐÂÓõÄsqlÓï¾ä¡£ var sqlSelCnt = "SELECT COUNT from [COUNT] WHERE ID = 'count'"; var sqlUpdCnt = "UPDATE [COUNT] SET [COUNT] = '"; //½¨Á¢Á¬½Ó£¬²¢É
Ïà¹ØÎĵµ£º
Õâ¾ä»°ÊÇ£ºprototypeÖж¨ÒåµÄÊǶÔÏóʵÀýÒª·ÃÎʵÄÊôÐÔ»ò·½·¨µÄÒ»¸öÌæ²¹¡£
¾ÙÀý˵Ã÷һϣº
//1£©¶¨ÒåÁËÒ»¸ö¶ÔÏó£º
function A()
{
//¸ø¶ÔÏó¶¨ÒåÒ»¸öÊôÐÔ
this.f1="this is f1";
}
//2£©ÎÒÃÇ¿ÉÒÔÕâÑùʹÓöÔÏó£º
var a = new A();
alert(a.f1)//µ¯³öÏûÏ¢£ºthis is f1
//3£©ÎÒÃÇ¿ÉÒÔÀ©Õ¹¶ÔÏó£º
A.prot ......
accessÖÐcaseÌæ´ú·½·¨
2009-12-26 14:01
SELECT
UserPassportID as PassportID,
UserID,
GrantorID,
Case ObjectTypeID
When 1 then ObjectID
End
as TerminalID,
Type, Flag, GrantDate, Validate, Invalidate
from UserPassport
ÔÚSQLÀïÄÜÖ´ÐÐ,µ«ÔÚAccessÀï×ÜÌáʾÓï·¨´íÎó(²Ù×÷·û¶ªÊ§).ÔÚ²éѯ±í´ïʽ'Case O ......
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>ÓÃjavascript¶¯Ì¬Ìí¼Óɾ³ýhtmlÔªËØ</title>
<script type="text/javascript"><!--
function $(nodeId) {
re ......
Ïȸø³ö»ù±¾µÄHTMLÎļþ£º
<ul>
<li id="m01"></li>
<li id="m01"></li>
<li id="m01"></li>
</ul>
<div>
<div id="C01"> </div>
<div id="C02">&n ......