摘要: 管道主要用于格式化数据显示,常用场景有货币、金额、日期、大小写转换 使用方法 value | pipename : param1 : param2 : ... value | pipename1 | pipename2 常用内置管道: DatePipe UpperCasePipe LowerCase 阅读全文
posted @ 2023-06-14 17:44 今天起个早 阅读(157) 评论(0) 推荐(0) 编辑
摘要: Sub getworkSheetsFromAnotherWorkbook()Dim wb As WorkbookSet wb = Workbooks.Open("C:\temp\excel_MBC2_old\BASE_POS-NewCI0005088.xlsx", ReadOnly:=True)Fo 阅读全文
posted @ 2023-05-18 16:24 今天起个早 阅读(11) 评论(0) 推荐(0) 编辑
摘要: get Sub getSensitivityLabel() Dim myLabelInfo Set myLabelInfo = Application.ActiveWorkbook.SensitivityLabel.GetLabel() Debug.Print (myLabelInfo.LabelI 阅读全文
posted @ 2023-02-06 16:16 今天起个早 阅读(63) 评论(0) 推荐(0) 编辑
摘要: 输入换行 =”A"&CHAR(10)&“B" 输出样式 A B 获取列号 =COLUMN() A列返回1 B列返回2 =INDIRECT("A1") 返回A1单元格的值 阅读全文
posted @ 2023-01-28 18:06 今天起个早 阅读(16) 评论(0) 推荐(0) 编辑
摘要: var jsContentStr1 = fs.readFileSync(path.join(__dirname,"output","newGenEpos.js"),"utf-8"); let jsBodyArr1 = esprima.parseScript(jsContentStr1,{ range 阅读全文
posted @ 2022-12-28 23:11 今天起个早 阅读(133) 评论(0) 推荐(0) 编辑
摘要: const vm = require('vm'); const fs = require('fs'); const x = 1; const context = { x: 2 ,myFs =fs }; vm.createContext(context); // Contextify the obje 阅读全文
posted @ 2022-04-22 19:32 今天起个早 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 保存git bash 输出到变量 temp="$(git status)" echo "${temp}" 打开浏览器 start chrome www.baidu.com 阅读全文
posted @ 2022-03-10 15:44 今天起个早 阅读(79) 评论(0) 推荐(0) 编辑
摘要: java - Mockito: When any instance invokes method, thenReturn something - Stack Overflow Mock一个void 返回值类型的方法 //代码文件 public class Demo { public void voi 阅读全文
posted @ 2022-03-02 18:11 今天起个早 阅读(81) 评论(0) 推荐(0) 编辑
摘要: Microsoft Scripting 运行时库参考 http://www.cftea.com/references/vbs5/html/vsgrpruntimefeatures.htm 阅读全文
posted @ 2022-02-13 17:21 今天起个早 阅读(69) 评论(0) 推荐(0) 编辑
摘要: Sub sample() Dim code code = "function greeting(x){return 'hello ,'+x}" Set js = CreateObject("ScriptControl") js.Language = "JScript" js.AddCode code 阅读全文
posted @ 2022-02-13 16:39 今天起个早 阅读(556) 评论(0) 推荐(0) 编辑