Delphi ÖÐÈçºÎ°²×°×é¼þ?
delphiÖÐÈçºÎ°²×°×é¼þÓÐÎåÖÖÇé¿ö£º
1¡¢Ö»ÓÐÒ»¸öDCUÎļþµÄ×é¼þ¡£DCUÎļþÊDZàÒëºÃµÄµ¥ÔªÎļþ£¬ÕâÑùµÄ×é¼þÊÇ×÷Õß²»Ïë°ÑÔ´Â빫²¼¡£Ò»°ãÀ´Ëµ£¬×÷Õß±ØÐë˵Ã÷´Ë×é¼þÊʺÏDelphiµÄÄÄÖÖ°æ±¾£¬Èç¹û°æ±¾²»¶Ô£¬ÔÚ°²×°Ê±¾Í»á³öÏÖ´íÎó¡£Ò²ÕýÊÇÒòΪûÓÐÔ´Â룬¸øÊ¹ÓÃÕß´øÀ´Á˲»±ã£¬ÄǾÍÊÇÒ»µ©Delphi°æ±¾Éý¼¶£¬´Ë×é¼þ¾Í²»ÄÜÔÙʹÓÃÁË£¬µ±È»ÓеÄ×÷Õ߸ø³öÁ˼¸ÖÖ°æ±¾µÄDCUÎļþ£¬Óû§¸ù¾ÝÐèҪѡÔñʹÓá£ÕâÑùµÄ×é¼þµÄ°²×°·½·¨ÊÇ£ºÔÚComponent²Ëµ¥ÖУ¬Ñ¡Ôñinstall component£¬ÔÚ¶Ô»°¿ò “into existing package“Ò³ÖУ¬µ¥»÷“Unit file name”ºóµÄ“Browse”°´Å¤£¬ÔÚ´ò¿ªµÄÎļþ¶Ô»°¿òÖУ¬½«“ÎļþÀàÐÍ”É趨Ϊ*.dcu£¬ÕÒµ½Òª°²×°µÄDCUÎļþ£¬°´OK°´Å¥·µ»Ø“into existing package“Ò³ºóÔÙ°´OK°´Å¥¾Í¿ÉÒÔ°²×°ÁË¡£×¢Ò⣬´ËʱDelphi»áÌáʾdclusr40.dpk½«±»Öؽ¨£¬ÊÇ·ñ¼ÌÐø£¬OK¾Í¿ÉÒÔÁË¡£ÕâÀïÊǽ«×é¼þ°²×°µ½dclusr40.dpk°üÖУ¬´Ë°ü´ÓÎļþÃûÉÏ¿ÉÒÔ¿´³öÊÇÓû§×Ô¶¨Òå×é¼þ°ü£¬ÏȰ²×°µ½Õâ¸ö°üÖаɣ¬ÏÂÃæÔÙ½²ÓйØ×¢ÒâÊÂÏî¡£°²×°Íê±Ï»áÓÐÒѾ½«×é¼þ×¢²áÍêµÄÌáʾÐÅÏ¢ÒÔ¼°°²×°µ½Äĸö×é¼þÒ³ÖеÄÐÅÏ¢µÈ£¬µ½×é¼þÃæ°åÉÏ¿´¿´£¬Ò»°ã»á³öÏÖÒ»¸öÐ ......
¿´µ½Ò»ÆªÈëÃŵÄJS¼Ì³ÐÎÄÕÂ,×ªÔØÏÂ
ÔµØÖ·:http://sdcyst.javaeye.com/blog/288813
Àà±äÁ¿/Àà·½·¨/ʵÀý±äÁ¿/ʵÀý·½·¨
ÏȲ¹³äÒ»ÏÂÒÔǰд¹ýµÄ·½·¨:
ÔÚjavascriptÖÐ,ËùÓеķ½·¨¶¼ÓÐÒ»¸öcall·½·¨ºÍapply·½·¨.ÕâÁ½¸ö·½·¨¿ÉÒÔÄ£Äâ¶ÔÏóµ÷Ó÷½·¨.ËüµÄµÚÒ»¸ö²ÎÊýÊǶÔÏó,ºóÃæµÄ
²ÎÊý±íʾ¶ÔÏóµ÷ÓÃÕâ¸ö·½·¨Ê±µÄ²ÎÊý(ECMAScript specifies two methods that are defined for all functions, call()
and apply(). These methods allow you to invoke a function as if it were a method of some other object. The first
argument to both call() and apply() is the object on which the function is to be invoked; this argument becomes
the value of the this keyword within the body of the function. Any remaining arguments to call() are the values
that are passed to the function that is invoked).±ÈÈçÎÒÃǶ¨ÒåÁËÒ»¸ö·½·¨f(),È»ºóµ÷ÓÃÏÂÃæµÄÓï¾ä:
f.call(o, 1, 2);
×÷ÓþÍÏ൱ÓÚ
o.m = f;
o.m(1,2);
delete o.m;
¾Ù¸öÀý×Ó:
Js´úÂë < type="application/x-shockwave-flash" width="14" height="15" src="http://www.javaeye.com/javascripts/syntaxhighli ......
¡¾ÒýÓõØÖ·¡¿http://hi.baidu.com/rayshow/blog/item/9102258daac46810b31bbad3.html
ÔÚä¯ÀÀÆ÷ÖÐËäÈ»´ò¿ªÑ¡Ôñ¶Ô»°¿òºÍ±£´æÎļþ¶Ô»°¿òµÄ¹¦Äܲ¢²»³£Ê¹Ó㬵«ÓÐʱÈÔÈ»»áÓõÃÉÏ£¬±ÈÈçÒ»¸öweb°æµÄ²¥·ÅÆ÷£¬ÈÃÓû§Ñ¡Ôñ±¾µØµÄÊÓÆµ»òÒôƵÎļþµÈ¡£¶ÔÓÚ´ò¿ªÑ¡ÔñÎļþ¶Ô»°¿òÀ´Ëµ£¬Ïà¶Ô±È½Ï¼òµ¥£¬Ö»ÐèÒªÔÚÒ³ÃæÄÚ·ÅÒ»¸öfile±êÇ©£¬¿ÉÒÔ½«ÆädisplayÉèÖÃΪnone£¬Ê¹ÓÃͼƬ¡¢°´Å¥¼°Á´½ÓÀ´Ä£ÄâfileµÄµ¥»÷ʼþ£¬´Ó¶øÊµÏÖÑ¡ÔñÎļþµÄÈÎÎñ¡£¾ßÌåʵÏÖÈçÏÂËùʾ£º<html>
<head>
<title> New Document </title>
</head>
<body>
<input type="file" id="file" style="display:none" mce_style="display:none">
<input type="button" value="click" onClick="ok()">
</body>
<mce:script language="JavaScript"><!--
function ok(){
var s = document.getElementById("file");
s.click();
var str = s.value;//»ñÈ¡Îļþ·¾¶
alert(str);//ÔÚÕâÀïÄã¿ÉÒÔ½øÐÐ×Ô¼ºµÄ¹¤×÷
}
// --></mce:script>
</html>
¶ÔÓÚ´ò¿ª±£´æÎļþ¶Ô»°¿ò¿ÉÒÔʹÓÃMSComDlg.CommonDialog¶ÔÏ󣬲¢ÇÒ¿ÉÒÔÉèÖÃÀàÐ͹ýÂË ......
<form name="f1"><select name="s1"
onchange="chg(document.f1.s1,document.f1.s2)">
<option value="½Î÷">½Î÷</option>
<option value="¸£½¨">¸£½¨</option>
</select><select name="s2">
<option value="1">1</option>
</select></form>
<script>
//´´½¨¶ÔÏó£¬Êý¾Ý£¬Öµ£¬Îı¾
function obj(aData, aValue, aText) {
this.Data = aData;
this.Value = aValue;
this.Text = aText;
}
//ÉèÖÃÑ¡ÏîÊý¾ÝÊý×飬¿ÉÒÔÌí¼Ó¶à¸ö²ÎÊýΪ"Ô´µØÖ·,Ñ¡ÔñÖµ£¬Ñ¡ÔñÎı¾"
var Set_data = new Array(
new obj('½Î÷', 'Äϲý', 'Äϲý'),
new obj('½Î÷', '¾Å½','¾Å½'),
&n ......
<script type="text/javascript">
function close(){
QQkefu.style.display="none";
return true;
}
function msgBox()
{
this.container = "aaaa";
this.titleheadArea = "titlehead";
this.width = 154;
this.height = 105;
this.smallHeight = 20;
this.smallId = "small";
this.area = ( document.compatMode.toLowerCase()=="css1compat" ) ? document.documentElement : document.body;
this.space = 5;
this.timer;
this.timeOut = 150;
this.smalled = false;
window.msgBoxListener = this;
this.$(this.smallId).onclick= function(){msgBoxListener.toSmall()};
}
msgBox.prototype.flow = function()
{
this.$(this.container).style.position = "absolute";
this.$(this.container).style.zIndex = "1000";
if(this.smalled ......
eclipseÖÐjavascriptÏÔʾΪÂÒÂëµÄ½â¾ö°ì·¨¡£
Òà¿ÉÒÀ´ÎÑ¡Ôñ²Ëµ¥"window">>"preferences">>"general">>"content types"
ÔÚÓұߵĴ°¿ÚÖдò¿ªÁбí,Ñ¡ÖÐ"JavaScript",ÔÚÏÂÃæµÄ"default encoding"ÓұߵÄÊäÈë¿òÖÐÊäÈëjavaScript±àÂ룬Ҫ¿´ÄúµÄÍøÒ³ÓõıàÂ룬Èç¹ûÊÇ“GBK”¾ÍÑ¡"GBK",ÊÇ"GB2312"¾ÍÑ¡“GB2312”£¬UTF-8¾ÍÊÇUTF-8£¬ÔÙµã"update"°´Å¥¡£
http://www.blogjava.net/menglikun/archive/2008/01/25/68079.html ......