C#»ñÈ¡webbrowserÖеÄHTMLÎÊÌâÇóÖú - .NET¼¼Êõ / C#
C#webbrowserÖÐÓÐÕâÑùÒ»¶ÎHTML´úÂë:
<INPUT id=71999002^71999005^1 desc="AAA" element_name="AAA" type=checkbox><a href="javascript:void(0)" >AAA</a>
ÒòΪ´úÂëÖеÄIDÖµ²»¹Ì¶¨£¬Ö»ÓÐAAAÊǹ̶¨µÄ£¬ÎÒÈçºÎ´«ÈëÒ»¸östring=BBBµÄ±äÁ¿£¬µ±BBB=AAAʱ£¬ÏÔʾAAAµÄIDÄØ£¿
ÎÒҪʵÏֵŦÄÜÊÇÕâÑùµÄ
string AAA;
string id=webBrowser1.Document?????????? »ñÈ¡·ûºÏAAAµÄID
HtmlElement Btn = webBrowser1.Document.All[id];
Btn.InvokeMember("click");// ʵÏÖµã»÷
ÒÔÉÏ£¿ÖеĴúÂë¸ÃÈçºÎʵÏÖ£¿£¿
jquery:
$(input[type=checkbox]).each(function(){
if(this.attr("desc")=="AAA")
alert(this.attr("id")
})
ÍêÕû´úÂëÈçºÎд£¿£¿¿´²»¶®
µÚÒ»ÐоÍÌáʾÎÞ·¨Òþʽת»»°¡£¿Ôõô»ØÊÂ
HtmlElementCollection hec= webbrowser.Document.Body.GetElementsByTagName("input");
ÕýÈ·µÄ£¬ÊÇÎÒд´íÁË£¬µÈÎÒµ÷ÊÔÏ¿´¿´
Ïà¹ØÎÊ´ð£º
дÁ˸ö²âÊÔ³ÌÐòÈçÏÂ
struct hostent *hp;
char AlarmDevIP[20];
int x2;
hp = gethostbyname("www.google.com");
if (hp)
{
......
´ó¼ÒºÃ£º
ÎÒÏëʵÏÖ¼ì²âµ½²åÈëSD¿¨ºó×Ô¶¯½«SD¿¨¸ñʽ»¯µÄ¹¦ÄÜ£¬²»ÖªC/C++ÖÐÓÐûÓиñʽ»¯UÅ̵ĺ¯Êý£¿
ÁíÍ⣬ÎÒ²»ÏëʹÓÃSHFormatDrive£¬ÒòΪÕâ¸öº¯Êý»áµ¯³öÊÇ·ñÒª¸ñʽ»¯µÄÌáʾ¿ò£¬ÎÒÐèÒªµÄÊÇϵͳ×Ô¶¯¸ñʽ»¯£¬¶ø²Ù×÷Õß² ......
ÔÚ¸ùĿ¼/libÖдæ·ÅÒ»¸ölog.c£¬log.h£¬²¢ÓÃÏÂÃæµÄÓï¾ä£º
gcc -c log.c
ar crv liblog.a log.o
±àÒë³öÒ»¸öliblog.a¾²Ì¬¿â£¬È»ºóÔÚÎļþ¼Ð£º/testfileÖд´½¨Ò»¸ötest.cºÍtestc.c£¬test.cÖÐÒýÓÃÁËtestc.cÖж¨ÒåµÄ·½·¨ ......
ËÄܰïÎÒ°ÑÏÂÃæÕâЩ´úÂë¸Ä³ÉVBÐÎʽµÄ£¬¶àлÁË£¬¼±ÓÃ~~
#include "stdlib.h"
#include "math.h"
#include "stdio.h"
float objfx(float x[]);
void constraint(float x[],float g ......
ʹÓÃACCESS×î´óµÄÒþ»¼¾ÍÊDz»°²È«¡£½ñÌì¶ÔACCESSÊý¾Ý¿âÉèÖÃÁËÒ»¸öÃÜÂ룬±ØÐëʹÓÃÃÜÂë²ÅÄÜ´ò¿ª£¬µ«ÊÇÔÚ³ÌÐòÖÐÈ´ÎÞ·¨Á¬½ÓÊý¾Ý¿âÁË¡£´ó¼ÒÖªµÀʹÓÃÓû§ÃûºÍÃÜÂ룬ÈçºÎÁ¬½ÓACCESSÊý¾Ý¿â£¿Ã²ËÆACCESSµÄÓû§Ãû»¹²»ÖªµÀ£¿Ö»Öª ......