当前位置:网站首页>2. E-commerce tool cefsharp autojs MySQL Alibaba cloud react C RPA automated script, open source log
2. E-commerce tool cefsharp autojs MySQL Alibaba cloud react C RPA automated script, open source log
2022-07-03 07:14:00 【jiangxng】
the second day : Plan priority -- taobao Order collection
problem
Multi store management , Different caches can realize login free
Preliminary ideas , Set up different CachePath.
after SEO Find out , There is no way to be different in the same process cef Browsers use different CachePath
Knowledge points related to solutions
adopt CefSettings Set up CachePath
then Cef.Initialize initialization , Each process ( Applications ) It can only be called once Initialize.
If you want to use different CachePath, You can call Cef.Shutdown, Then use different CachePath【 To be verified 】
Knowledge point
stay cefSharp To realize Jquery, Provide scripting efficiency
From disk / database / Embedded resources / Load in stream HTML / CSS / JavaScript / etc
string injection_jquery = @"
(function () {
function getScript(url, success) {
var script = document.createElement('script');
script.src = url;
var head = document.getElementsByTagName('head')[0],
done = false;
script.onload = script.onreadystatechange = function () {
if (!done && (!this.readyState || this.readyState == 'loaded' || this.readyState == 'complete')) {
done = true;
success();
script.onload = script.onreadystatechange = null;
head.removeChild(script);
}
};
head.appendChild(script);
}
getScript('http://code.jquery.com/jquery-latest.min.js', function () {
if (typeof jQuery == '') {
console.log('Sorry, but jQuery wasn\'t able to load');
} else {
console.log('This page is now jQuerified with v' + $.fn.jquery);
$(document).ready(function () {
//here you can write your jquery code
});
}
});
})();";
private void Cef_FrameLoadEnd(object sender, FrameLoadEndEventArgs e) {
ChromiumWebBrowser cef = (ChromiumWebBrowser)sender;
cef.ExecuteScriptAsync(injection_jquery);
}
边栏推荐
- 【已解决】Unknown error 1146
- Search engine Bing Bing advanced search skills
- Class and object summary
- centos php7.3安装redis扩展
- Flask Foundation
- crontab定时任务
- LeetCode
- Use the jvisualvm tool ----- tocmat to start JMX monitoring
- Advanced API (character stream & net for beginners)
- In depth analysis of reentrantlock fair lock and unfair lock source code implementation
猜你喜欢

高并发内存池

SecureCRT password to cancel session recording
![Gridome + strapi + vercel + PM2 deployment case of [static site (3)]](/img/65/8d79998e96a2c74ba6e237bee652c6.jpg)
Gridome + strapi + vercel + PM2 deployment case of [static site (3)]

Software testing learning - the next day

Pat grade a real problem 1166
![[set theory] partition (partition | partition example | partition and equivalence relationship)](/img/f0/c3c82de52d563f3b81d731ba74e3a2.jpg)
[set theory] partition (partition | partition example | partition and equivalence relationship)

Common APIs

How to specify the execution order for multiple global exception handling classes

MySQL installation

Basic knowledge about SQL database
随机推荐
深度学习参数初始化(一)Xavier初始化 含代码
Sorting out the core ideas of the pyramid principle
Pits encountered in the use of El checkbox group
php artisan
Software testing learning - day 3
Flask Foundation
Summary of abnormal mechanism of interview
Gridome + strapi + vercel + PM2 deployment case of [static site (3)]
Advanced APL (realize group chat room)
Advanced API (UDP connection & map set & collection set)
In depth analysis of reentrantlock fair lock and unfair lock source code implementation
Thoughts in Starbucks
Use of framework
LeetCode
Win 2008 R2 crashed at the final installation stage
Software testing assignment - day 3
在 4EVERLAND 上存储 WordPress 媒体内容,完成去中心化存储
JMeter JSON extractor extracts two parameters at the same time
On the practice of performance optimization and stability guarantee
High concurrency memory pool