Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

C#ÖнâÎöjavascript´úÂë


´ó²¿·ÖµÄ½âÊÍÐͽű¾ÓïÑÔ¶¼Ìṩ eval ·½·¨À´Íê³É¶¯Ì¬´úÂëµÄ½âÊÍÖ´ÐУ¬ C# È´²¢²»Ìṩ£¨Ïò Java ѧϰ£©¡£²»¹ýÔÚ .NET Framework Àà¿âÀïÃæÌṩµÄ Microsoft.JScript ÃüÃû¿Õ¼äµ¹ÊÇ°üº¬ÁËÖ§³ÖʹÓÃJScript ÓïÑÔ±àÒëºÍÉú³É´úÂëµÄÀà¡£
ÏÈÉÏ´úÂ룺
¡¡¡¡¸ÃÀàÐèÒªÄãÌí¼Ó¶Ô³ÌÐò¼¯ Microsoft.JScript µÄÒýÓã»Èç¹û°Ñ“current version with JScriptCodeProvider” ²¿·Ö´úÂëÌ滻Ϊ“deprecated version with Vsa”²¿·Ö´úÂ룬Ä㻹ÐèÒªÌí¼Ó¶Ô³ÌÐò¼¯ Microsoft.Vsa µÄÒýÓá£
¡¡¡¡´úÂë¶ÎĩβעÊ͵ôµÄ²¿·ÖÊÇÓà Microsoft.JScript.Vsa.VsaEngine ×÷Ϊ½Å±¾ÒýÇæÀ´Íê³É Evaluate ¹¤×÷£»µ« VsaEngine £¨°üÀ¨ÆäËùʵÏÖµÄ IVsaEngine ½Ó¿Ú£©ÔÚ .NET Framework 2.0 ÖÐÒѾ­±» deprecated £¬ËùÒÔÈç¹ûÄãÔÚа汾ϱàÒëµÄ»°£¬»áµÃµ½Èçϵľ¯¸æÐÅÏ¢£º“Microsoft.JScript.Vsa.VsaEngine”Òѹýʱ:“Use of this type is not recommended because it is being deprecated in Visual Studio 2005; there will be no replacement for this feature. Please see the ICodeCompiler documentation for additional help.”
¡¡¡¡ÕâÑùµÄ Evaluate ·½·¨Ò»¸öÏÔ¶øÒ×¼ûµÄÓÃ;¾ÍÊǽâÎö JSON Êý¾Ý¡£ JSON µÄÊý¾Ý¸ñʽʵ¼ÊÉÏÊÇ JavaScript ¶ÔÏó¶¨ÒåÓï·¨µÄ×Ó¼¯£¬ËùÒÔʹÓÃÕâ¸ö Framework ËùÌṩµÄ½Å±¾ÒýÇæÀ´½âÎöµÃµ½µÄ JSON ¸ñʽµÄÊý¾Ý¾Í±È×Ô¼ºÐ´Ò»¸ö Parser À´µÄÇáËɵöࡣ±ÈÈ磺
view plaincopy to clipboardprint?
string jsStr =    
    "( {'timeString':'Time is: ' + new Date(),'dateValue':new Date()} )";   
Microsoft.JScript.JSObject obj =    
    (Microsoft.JScript.JSObject) JSEvaluator.EvalToObject(jsStr);   
MessageBox.Show(obj["timeString"].ToString());   
MessageBox.Show(obj["dateValue"].ToString());   
Microsoft.JScript.DateObject tmpV =    
    (Microsoft.JScript.DateObject)obj["dateValue"];   
DateTime dt =    
    (DateTime) Microsoft.JScript.Convert.Coerce(tmpV, typeof(


Ïà¹ØÎĵµ£º

c# SQLÊý¾Ý¿âÔ¶³ÌÁ¬½Ó¼°ÅäÖ÷½·¨

c# SQLÊý¾Ý¿âÔ¶³ÌÁ¬½Ó¼°ÅäÖ÷½·¨
Ò»£ºC# Á¬½ÓSQLÊý¾Ý¿â
Data Source=myServerAddress;Initial Catalog=myDataBase;User Id=myUsername;Password=myPassword;
Data Source=190.190.200.100,1433;Network Library=DBMSSOCN;Initial Catalog=myDataBase;User ID=myUsername;Password=myPassword;
Server=myServerAddress;D ......

JavaScriptÄܽ«Ò³ÃæÖеÄͼƬµ¼³öµ½excel


Javascript´úÂë
<script>    
var idTmr = "";    
function copy(tabid){    
var oControlRange = document.body.createControlRange();    
oControlRange.add(tabid,0);    
oControlR ......

JavaScriptµ¼³öword excelÎļþ

³ö´¦£ºhttp://www.jcwcn.com/article/2005/1210/javascript_17476.html
<HTML>
  <HEAD>
    <title>WEBÒ³Ãæµ¼³öΪEXCELÎĵµµÄ·½·¨
    </title>
  </HEAD>
<body>
<BR>
<table id = "PrintA" width="100%" border="1" cell ......

Google Èýά JavaScript API ·¢²¼


O3D ÊÇÒ»¸ö¿ªÔ´µÄWeb API£¬Æä¿ÉÒÔ´´½¨Ï൱ţXµÄ»ùÓÚä¯ÀÀÆ÷µÄ¿É½»»¥Ê½µÄ3DÓ¦Óá£Õâ¸öAPIÔÚºÜÓпÉÄÜ»áÐγÉÒÔºóµÄWebÉϵÄ3DͼÐεıê×¼¡£ÏÂÃæÊÇÕâ¸öAPIµÄÖ÷Õ¾µã£º http://code.google.com/apis/o3d/ ¡£O3DÄ¿Ç°Ö§³ÖWindows, MacºÍLinuxÈýÖÖƽ̨¡£
ÏÂÃæÊÇһЩ¼òµ¥µØʹÓÃO3DµÄAPIµÄÈçºÎ´´½¨Ò»¸öÁ¢·½Ì壬¸üÏêϸµÄÄÚÈÝÇ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ