谷歌浏览器强制页面黑暗模式 2026-07-15
晚上打开浏览器虽然可以设置主题为深色,但是大部分网址还是白色背景,可以用以下方式进行设置1.打开网址:chrome://flags/#enable-force-dark2.选择Enabled,然后重启浏览器即可
CH32V003F4P6使用回顾 2026-07-11
背景想要做智能抽屉想找一款价格最低的同时能满足控制电机+串口控制+读取ADC数据的一款IC,AI给的结果就是这一款,他也出色的完成了他的任务,外围器件少焊接也很方便,使用电路图立创开源平台有众多案例,烧录器使用WCH-LinkE,连接PCB的三根线即可(3.3V/5VGNDSWDIO),IDE使用MounRiverStudioⅡ,代码AI即可完成,这里注意的一点是我这个芯片需要将,闪存->下载配置->调试器模式,设置为RISC-V,使用默认的ARM连芯片都识别不了
Vue & Python将pywebview执行的操作改为同步 2025-02-26
constbatchOperate=async(type)=>{for(letrowofmultipleSelection.value){varpath=awaitpywebview.api.uploadOrder(row['create_date']+"/"+row['file']);}}
Element 根据JSON数据自动合并单元格 2025-02-26
使用一级JSON,而不是多级嵌套JSON-数据需要排序letstr=""conststroageValue:Record<string,string|number>=reactive({})constgoodsSpanMethod=({row,column,rowIndex,columnIndex}:SpanMethodProps)=>{if(columnIndex==0||columnIndex==1){letspanCount=1//从当前行往下找for(leti=rowIndex+1;i<productData.value.length;i++
Mysql将查询记录内容拼接为JSON 2025-02-26
SELECTo.field1,o.field,c.fieldfield,o.field,DATE(o.field)field,`field`,`field`,`field`,IF(cp.fieldISNULL,'[]',JSON_ARRAYAGG(JSON_OBJECT('product_id',cp.field,'product_name',cp.field)))ASfieldFROMtableoleftJOINtablecONo.field=c.fieldleftJOINtablecpONo.field=cp.fieldWHERE(field
后端技术
PHPObject转Array 2025-02-26
publicfunctionobject_to_array($obj){$_arr=is_object($obj)?get_object_vars($obj):$obj;$arr=null;foreach($_arras$key=>$val){$val=(is_array($val))||is_object($val)?$this->object_to_array($val):$val;$arr[$key]=$val;}return$arr;}$task_data=$this->object_to_array(json_decode(htmlspecialchars_deco
Mysql
将一条记录的多个字段合并为一个 2025-02-26
SELECTid,name,role1ASroleFROMemployeesUNIONALLSELECTid,name,role2ASroleFROMemployeesUNIONALLSELECTid,name,role3ASroleFROMemployeesWHERErole2ISNOTNULLUNIONALLSELECTid,name,role3ASroleFROMemployeesWHERErole3ISNOTNULL;
后端技术
PHP万能读取请求参数 2025-02-26
前端使用POST方式传递数据(跨域)axios.post('http://xxx.xxx.xxx.xxx:8888/xxx/xxx/xxx',{xxxForm}).then(res=>{})ThinkPHP后端使用I(“post.”)接收不到数据,get,request,put都试了一遍原来使用的是put使用put读取出来数据…,有点小乱,json_decode也用不了。array(1){["{"ruleForm":{"rules":"]=>array(1){["{"field"
Jquery滚轮事件 2023-09-19
下载插件GitHub:https://github.com/jquery/jquery-mousewheel使用$('body').on('mousewheel',function(event){//防抖代码if(time!==null){clearTimeout(time);}time=setTimeout(()=>{if(event.deltaY==1){//yourcode}else{//yourcode}},1000)});
Python使用pywebview 2023-09-19
使用方法python代码:classApi:defsayhello(self,name)->str:print("hello"+name)return"已get"defexpose(window):window.toggle_fullscreen()window.evaluate_js('alert("helloworld")')api=Api()win=webview.create_window(title='windows',url='http://your_web',js_a
热门文章
专栏