自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(197)
  • 资源 (13)
  • 问答 (2)
  • 收藏
  • 关注

转载 C#访问Java的WebService添加SOAPHeader验证的问题

首先,要创建一个继承自System.Web.Services.Protocols.SoapHeader的RequestSOAPHeader类,在其中添加UserName和Password两个属性,代码如下:publicclassRequestSOAPHeader: System.Web.Services.Protocols.SoapHeader{ publicstringuser {get;set; } publicstringpassword {g...

2021-11-15 11:06:12 628

转载 CommonJs模块规范和ES6模块规范

引用 https://blog.csdn.net/zhushikezhang/article/details/79667870前述:模块化规范中,每个文件就是一个模块,有自己的作用域。在一个文件里面定义的变量、函数、类,都是私有的,对其他文件不可见。首先我们要明白一个前提,CommonJS模块规范和ES6模块规范完全是两种不同的概念。一.CommonJS模块:模块输出方式:exports 和 module.exports模块输入方式:requireCommonJS规范规定,每个模

2021-02-03 11:49:33 395

转载 npm包--url & querystring

引用https://blog.csdn.net/u013530539/article/details/790738811/含义url:访问地址路径querystring:用来解析一个url中的参数值2/使用var url = require('url');1、url.parse():将一个url转换成js对象2、url.format():将一个urlobj对象转换成url字符串var querystring = require('querystring');...

2021-02-02 16:41:01 847

转载 npm包--fs

1/含义文件系统2/使用读取readFile(filename,[options],callback);fs.readFile(__dirname + '/test.txt', { flag: 'r+', encoding: 'utf8'}, function (err, data) { if(err) { console.error(err); return; } console.log(data);});写文件// fs.writ...

2021-02-02 16:04:58 615

转载 npm包--chalk

1/含义修改控制台中字符串的样式(字体样式加粗等/字体颜色/背景颜色)2/使用加粗+红色字+背景白色 const chalk = require('chalk'); console.log(chalk.red.bold.bgWhite('Hello World')); const chalk = require('chalk'); console.log(chalk`{red.bold.bgWhite Hello World}`); ...

2021-02-02 16:02:32 254

转载 npm包--path

1/含义路径2/安装npm install path3/使用var path = require('path');1、path.dirname():获取目录2、path.basename():获取文件名.扩展名(我们统称为全名)3、path.extname():获取扩展名4、path.parse():将一个路径转换成一个js对象5、path.format():将一个js对象转换成路径6、join():拼接多个...

2021-02-02 16:00:52 886

转载 npm包--ora

(官网)1/含义主要用来实现node.js命令行环境的loading效果,和显示各种状态的图标等2/使用npm install --save oraconst ora = require('ora'); const spinner = ora('Loading unicorns').start(); setTimeout(() => { spinner.color = 'yellow'; spinner.text = 'Loading rainbows'; }...

2021-02-02 15:58:05 789

转载 npm包--rimraf

引用 https://blog.csdn.net/u013530539/article/details/790737991/含义rimraf包的作用:以包的形式包装rm -rf命令,用来删除文件和文件夹的,不管文件夹是否为空,都可删除2/安装npm install rimraf --save-dev3/使用 const rimraf = require('rimraf'); rimraf('./test.txt', function (er...

2021-02-02 15:57:08 844

原创 C#使用反射動態調用exe或者dll時,exe/dll里使用ConfigurationManager讀取配置文件失效

映射方法如下 Assembly sType = Assembly.LoadFrom(ExeDllName); Type[] Types = sType.GetTypes(); foreach (Type k in Types) { try { if (k

2021-01-23 16:00:22 293

原创 一次性搞清楚element-ui里用到this._l()是什麼意思

參考 https://segmentfault.com/q/1010000017896162/a-1020000017896676查看Vue.js的源碼,可以看到如下兩段代碼 function installRenderHelpers (target) { target._o = markOnce; target._n = toNumber; target._s = toString; target._l = renderList; target._t = re

2021-01-16 10:32:26 1408

原创 一個案例會用mysqlbinlog,用mysqlbinlog工具binlog文件轉化成看得明白的文件

mysqlbinlog分析binlog1.mysqlbinlog 工具位置mysql安裝目錄 比如:我的安裝目錄D:\losedguest\MySQL5.7\bin 如下圖2.binlog位置主數據庫(Master) Mysql的安裝位置 D:\MySQL5.7\log\binlog.000776binlog.000776的文件名,來自下面的異常在從數據庫(SLAVE數據庫) 用SHOW SLAVE STATUS 查看異常問題異常信息:(mysql的查詢分析器我用的Sqlyog)Coul

2021-01-15 10:03:17 166

原创 一個小案例搞清楚Arrays.sort實現原理

小數組Arrays.sort採用的二分法比較來排序的參考 https://www.cnblogs.com/hejiayang/p/14119741.html<p>原數據40,100,1,5,25,10,200</p><p>第一次(100-40)比較結果 100,原來無有序排序,直接取第2個和第1個比較即100-40 產生排序100</p><p>第二次(1-100)比較結果 暫時不變,已有排序 100,取已有排序中間值(中間的小值)即1

2021-01-11 16:38:44 79

原创 一個案例搞明白DOM property 和 attribute的區別

property 和 attribute 兩個意思都是屬性的,看網上的說明,都更繞口令一樣參考中文的, https://blog.csdn.net/rudy_zhou/article/details/104058741英文的 https://stackoverflow.com/questions/6003819/what-is-the-difference-between-properties-and-attributes-in-html#answer-6004028直接看兩張圖就清楚了.

2021-01-11 10:16:17 123 1

原创 一個案例探究client,offset

1.標籤屬性 clientWidth,clientHeight,clientTop,clientLeft,offsetWidth,offsetHeight,offsetTop ,offsetLeftclientWidth= width+padding,clientHeight=height+paddingclientTop =border,clientLeft同理offsetWidth=clientWidth+border,offsetHeight=clientHeight+bordero.

2021-01-04 07:58:39 81

原创 一個案例理解 apply(thisObj)

function A(){ this.flag = 'A'; this.flaf='C'; this.tip = function(){ alert("flag"+this.flag); }; console.log(this); alert("flaw"+this.flaw); alert("flaf"+this.flaf); } function B(){ this.flag..

2020-12-25 16:39:51 118 2

原创 elementui源碼解讀-問題8 Render里渲染用標籤直接賦值變量時 產生Module parse failed: Unexpected token (44:6)

Module parse failed: Unexpected token (44:6)File was processed with these loaders:* ./node_modules/vue-loader/lib/index.jsYou may need an additional loader to handle the result of these loaders.Vue項目在Render函數里直接渲染時,直接採用(<標籤></標籤>)模式的賦值時.

2020-12-17 14:12:59 608

原创 C#使用谷歌翻譯

private void button18_Click(object sender, EventArgs e) { EN.Text = GoogleTranslate.Translate(CHT.Text); }public class GoogleTranslate { private static string GoogleTranslateUrl = "https://translate.google.cn...

2020-12-08 09:47:20 679

原创 elementui源碼解讀-問題7 SCSS問題

異常Module build failed (from ./node_modules/sass-loader/dist/cjs.js):SassError: Undefined mixin.@include b(button) {// 此處內容即mixin里的@content}使用SCSS @include 但是使用@mixin定義 b增加定義如下@mixin b($block) { $B: $block !global; .#{$B} { @content;

2020-11-27 11:11:12 177

原创 elementui源碼解讀-問題6 vue-loader異常

1異常Module build failed (from ./node_modules/vue-loader/index.js):TypeError: Cannot read property 'vue' of undefined參考https://my.oschina.net/u/1033181/blog/2253646升級vue-loadernpm install vue-loader@latest2異常vue-loader升級后Module Error (from ./no

2020-11-27 10:04:17 124

原创 elementui源碼解讀-問題5 TypeError: compilation.mainTemplate.applyPluginsWaterfall is not a function

TypeError: compilation.mainTemplate.applyPluginsWaterfall is not a function參考 https://blog.csdn.net/zaocha321/article/details/104080778升級npm i --save-dev html-webpack-plugin@next

2020-11-26 16:56:31 695

原创 elementui源碼解讀-問題4 處理scss文件卡死,fibers缺失

1.npm run dev時,產生以下錯誤12% building modules 18/25 modules 7 active ...e-style-loader\lib\addStylesClient.js## There is an issue with `node-fibers` ##`D:\losedguest\MyDemo\Vue\workplace\node_modules\[email protected]@fibers\bin\win32-x64-64\fibers.node` is mis

2020-11-26 15:57:50 765

原创 elementui源碼解讀-問題3 找不到scss文件

This relative module was not found:* ../packages/theme/index.scss in ./src/main.js需要安裝 以下命令cnpm install node-sass --save-devcnpm install sass-loader --save-dev

2020-11-24 16:56:04 274

原创 elementui源碼解讀-問題2 import Element from ‘main/index.js‘其中main指向何處

Element-UI里的引入Element都是這樣 import Element from 'main/index.js'可是在文檔結構里找了一圈也沒有找到main文件其實這個main是一個別名在webpack的js文件里設定了對應關係比如當前使用npm run dev:play 運行的項目npm run dev:play 運行用的webpack.demo.js進行的打包webpack.demo.js里配置別名設置如下 (引用的config.js里的alias).

2020-11-24 16:04:12 319

原创 Element-UI源碼解讀 問題1 樣式theme-chalk里安裝相關依賴時報錯

無法下載 https://github.com/sass/node-sass/releases/download/v4.14.1/win32-x64-64_binding.nodewin32-x64-64_binding.node 到淘寶鏡像里 https://npm.taobao.org/mirrors/node-sass 找到對應的版本的資料手動下載下載完后放在本地C:\Users\Administrator\AppData\Roaming\npm-cache\node-sass\4.14.1

2020-11-24 14:51:57 118

原创 electron 異常2-打包

1.打包異常Cannot compute electron version from installed node modules - none of the possible electron modules are installed.electron-builder --win原因是package.json里沒有設置依賴 "devDependencies": { "electron": "^11.0.2", "electron-builder": "^22.9.1

2020-11-20 13:48:07 3940

原创 electron 異常1 --運行electron .

1 unable to find Electron app at..Cannot find module...修改以下代碼后,依然不起作用//var app = require('app'); // 控制应用生命周期的模块。//var BrowserWindow = require('browser-window'); // 创建原生浏览器窗口的模块const electron = require('electron');const app = electron.app;con.

2020-11-20 10:32:43 852 1

原创 Vue命令用不了

'vue' is not recognized as an internal or external command,operable program or batch file.重新安裝的NodeJS后,發現Vue命令不能用了解決方案,重新安裝安裝cnpmnpm install -g cnpm --registry=https://registry.npm.taobao.org安裝vuecnpm install vue -g安裝vue-clicnpm instal.

2020-11-20 08:16:31 5517

原创 nativefier 異常問題記錄及解決方案--封裝網頁

1.全局安裝nativefier,命令行輸入 npm install nativefier -g,當前已裝,不再執行了,2.安裝后查看版本 nativefier -v 當前最新版本 是10.1.5,安裝指定版本 npm install nativefier@^9.1.0 -g3.封裝網頁時(nativefier -n baidu www.baidu.com),卡了 版本10.1.5 ,可能是這個版本的問題 後續換了版本 9.1.0URL "www.baidu.com" lacks a

2020-11-17 16:34:37 1951 1

原创 NodeJS Express異常1-- 使用

// Routes/index.js 文件module.exports = function (app) {app.get('/', function (req, res) { res.send('Hello haha!');});app.get('/customer', function(req, res){ res.send('customer page');});app.get('/admin', function(req, res){ res.send('admin pa.

2020-11-13 16:32:24 65

原创 一瀏覽IIS的網頁,DefaultAppPool就停止

系統日誌里出現此類問題設置組件服務里的IIS Admin Service的權限也沒有用解決方案是 查看DefaultAppPool被那些應用使用,一一排除

2020-08-13 16:57:28 458

原创 IIS Admin Service組件服務 權限灰色無法修改

組件服務里的IIS Admin Service 為灰色,無法修改解決方案:參考http://www.023dns.com/server_ECS/2019.html到註冊表里,將{A9E69610-B80D-11D0-B9B9-00A0C922E750}擁有者是否為管理員完全控制HKEY_CLASSES_ROOT/AppID/{A9E69610-B80D-11D0-B9B9-00A0C922E750}如下圖...

2020-08-13 16:35:49 1889

原创 異常Failed to load resource: the server responded with a status of 503 (Service Unavailable)

如果對應JS引用正確的話,重新刷新的話會正常訪問網頁時,加載空白的,查看開發腳本時,發現一堆錯誤Failed to load resource: the server responded with a status of 503 (Service Unavailable)切換到sources時,發現對應的JS文件沒有加載下來...

2020-08-13 15:31:31 9470 1

原创 異常The page you are requesting cannot be served because of the ISAPI and CGI Restriction list setting

HTTP Error 404.2 - Not FoundThe page you are requesting cannot be served because of the ISAPI and CGI Restriction list settings on the Web server.一個簡單Vue項目放在IIS下面,訪問出現以上異常解決方案應用池屬性 經典改成集成...

2020-08-13 14:32:15 223

原创 C# 代碼啟動指定的服務

ServiceController[] array = ServiceController.GetServices();for (int i = 0; i < array.Length; i++){ ServiceController serviceController = array[i]; if (serviceController.ServiceName == "GuardService") { ServiceControllerStatus status = serviceCo.

2020-05-29 16:29:17 137

原创 C# 用Ionic.Zip壓縮文件卡死問題

Ionic.Zip.dll 链接:https://pan.baidu.com/s/1p2ziRd38gVmgReXpGIWiXw 提取码:d563ICSharpCode.SharpZipLib net2.0 链接:https://pan.baidu.com/s/1lJSe2W9hmIRBZsdkldufHw 提取码:3mptICSharpCode.SharpZipLib net4.0 链接:https://pan.baidu.com/s/14HKQr0YfRDD67MKeN4bcSA 提取码:...

2020-05-28 12:08:04 505

原创 Vue里實現Spliter的組件

效果代碼:使用組件代碼<template> <div id="app"> <div style="width:400px;height:300px;margin-left:200px;border:1px solid;overflow:visible;position:relative;"> <splitervbox> <template v-slot:leftBox>haha</te

2020-05-22 15:37:32 698

原创 C# 獲取Excel里引用的外部其他excel文件清單

關鍵方法:mySheet.Application.ActiveWorkbook.LinkSources(XlLink.xlExcelLinks);詳情見Office官方說明 https://docs.microsoft.com/zh-cn/office/vba/api/excel.workbook.linksources主要代碼如下 Application myExcel = null;//引用Excel Application类別 Workbook myBook

2020-05-14 08:24:09 305

原创 C# 利用office另存為功能將xml文件轉化為xls文件部份電腦出現中文亂碼問題

1.手機上訪問亂碼2.部份電腦訪問亂碼原因是存的xls版本可能不對,可能(蘋果mac)上的Number還打不開XlFileFormat的詳細介紹 https://docs.microsoft.com/zh-cn/office/vba/api/excel.xlfileformat用的office2003版本的 好些XlFileFormat的選項沒有之前採用過XlFileFormat .xlExcel7 和XlFileFormat .xlExcel9795(出現亂碼問題)-->存檔

2020-05-12 10:30:29 257

原创 C# 操作Excel相關問題

問題1.引用 Microsoft.Office.Interop.Excel無法使用 mySheet = (Worksheet)myBook.Worksheets[1];生成時One or more types required to compile a dynamic expression cannot be found. Are you missing a reference?...

2020-05-07 16:53:42 606

原创 Mysql Using join buffer (Block Nested Loop) join

通过EXPLAIN发现,extra中有数据是Using join buffer (Block Nested Loop)1.數據類型不一致(建立索引也不會生效)2.未建立索引/或者索引不正確SELECT a.wf_no,IFNULL(b.wf_pointx,a.wf_pointx) AS wf_pointx,IFNULL(b.wf_pointy,a.wf_pointy) AS wf_p...

2020-04-17 10:34:19 8943 1

UIControlTest.7z

使用ToolStripDropDown實現下拉框,條例式下拉框和多選式下拉框

2019-08-02

弱網和丟包測試

包內含FiddlerSetup.exe,Network Emulator Toolkit x64和clumsy-0.2-win32/clumsy-0.2-win64

2019-05-07

libmupdf.dll

PDF轉化圖片使用的DLL 使用上碰到問題參考https://blog.csdn.net/losedguest/article/details/82834581

2018-09-25

张鑫旭斷點續傳功能

參考https://www.zhangxinxu.com/wordpress/2013/11/xmlhttprequest-ajax-localstorage-文件断点续传/ 做的Net版本的斷點續傳

2018-09-04

jstl.jar和standard.jar

jstl.jar和standard.jar兩個包,JSPwebk開發用c:forEach

2018-05-02

JS+CSS實現Spliter功能

JS+CSS實現Spliter功能 效果參考http://blog.csdn.net/losedguest/article/details/79494418

2018-03-09

Web JS+Css右鍵多級菜單

效果見http://blog.csdn.net/losedguest/article/details/79493920 JS實現右鍵多級菜單

2018-03-09

Sqlite3 數據庫修復工具

Sqlite3數據庫修復工具,修復原理http://blog.csdn.net/losedguest/article/details/74910304

2017-07-11

Sqlite3.exe

Sqlite3.exe 命令行工具

2017-07-10

Jquery Mobile 簡單應用及源碼

Jquery Mobile 側窗,列表,簡單登錄,SqlIte數據抓取, 資源效果 http://blog.csdn.net/losedguest/article/details/73188476

2017-06-13

C# 多語言切換功能 Resource和XML兩種資源

C# 多語言切換 語言採用XML存儲 支持 各種菜單,頁簽,ListView 樹形節點等多種控件 語言採用Resource資源存儲僅做了簡單測試

2017-06-01

C# WinForm RTF TO HTML

將RichTextBox的顯示內容轉到Webbrowser里顯示 將Rtf格式的內容轉化為HTML 支持Rtf里內嵌圖片文件,即RichTextBox里有圖片 效果杠杠的

2016-10-25

Eml郵件查看器,POP3 MIME解析

仿Mozilla Thunderbird的郵件的郵件查看器,支持Mozilla,Foxmail等多種客戶端導出的Eml文件,支出郵件圖片,附件下載等

2016-10-24

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除