45 lines
1.1 KiB
C#
45 lines
1.1 KiB
C#
using AllBase;
|
|
using CefSharp.WinForms;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace _29WxOrder
|
|
{
|
|
public class BoundJs
|
|
{
|
|
public static ChromiumWebBrowser OwnerBrowser;
|
|
//public SearchSameForm SearchForm;
|
|
public BoundJs(ChromiumWebBrowser OwnerBrowserx/*, SearchSameForm searchForm*/)//构造与JS交互的方法
|
|
{
|
|
OwnerBrowser = OwnerBrowserx;
|
|
//SearchForm = searchForm;
|
|
}
|
|
public void myfunc(string aniContent)
|
|
{
|
|
BaseClass.AntiContent = aniContent;
|
|
//try
|
|
//{
|
|
// JavascriptResponse task = await OwnerBrowser.GetBrowser().MainFrame.EvaluateScriptAsync(PinDuoDuoAntiJs.PinDuoDuo_0anA);
|
|
|
|
// BaseClass.AntiContent = task.Result.ToString();
|
|
//}
|
|
//catch (Exception)
|
|
//{
|
|
|
|
// //throw;
|
|
//}
|
|
|
|
|
|
}
|
|
|
|
public void addproId(string upId)
|
|
{
|
|
//SearchForm.SetUpProductId(upId);
|
|
}
|
|
|
|
}
|
|
}
|