當前位置:編程學習大全網 - 網站源碼 - C# webBrowser。導航問題?

C# webBrowser。導航問題?

清除cookie

網絡瀏覽器。navigate(" JavaScript:void((function(){ var a,b,c,e,f;f = 0;a = document . cookie . split(';');for(e = 0;e & lt長度和長度。& amp阿[英];e++){ f++;for(b= ' . '+location . host;b;b=b.replace(/^(?:%5C。|[^%5C.]+)/,' ')){ for(c = location . pathname;c;c=c.replace(/。$/,' ')){ document . cookie =(a[e]+';domain = '+b+ ';path = '+c+';expires = '+新日期((新日期())。getTime()-1e 11)。toGMTString());}}}})())")

//使用?系統。Runtime . InteropServices

[DllImport("wininet.dll ",SetLastError?=?真的嗎?字符集?=?字符集。Auto)]public?靜電?extern?布爾?InternetSetOption(IntPtr?hInternet,?int?dwOption,

IntPtr?lpBuffer,?int?dwBufferLength);

私人?作廢?Form1_Load(對象?發件人?EventArgs?e){

var?ptr?=?法警。alloch global(4);

法警。WriteInt32(ptr,3);

InternetSetOption(IntPtr。零,?81,?ptr,?4);

法警。發布(ptr);

webBrowser1。導航(XXX”);}

  • 上一篇:網站設計作業求助
  • 下一篇:打牌計分器微信小程序怎麽加遊戲好友
  • copyright 2024編程學習大全網