uniapp-app存储读取文件
uniappapp将内容存储到手机
uniappapp将内容存储到手机
点击表格中的内容,删除某一行正文js代码如下functionremoveTd(obj){obj.parentNode.parentNode.remove();}
笔记类,加深印象提示被别人锁定文件时idea中操作文件中操作
nodejs打包成为exe可执行文件需要将nodejs写的项目运行到客户机上,客户机可能没有node环境,所以需要将其打包目前上手使用的是pkgnpminstallpkgg生成exe文件,window环境pkgtwind:/index.jsoindex.exehttps://github.com/zeit/pkgfetch/releas
获取扫描仪中的信息并传到指定服务器app.js代码consthttprequire('http');constSerialPortrequire("serialport");constportnewSerialPort('com3');constfsrequire('fs');varquerystringre
maven添加自定义jar包找到maven安装bin目录mvninstall:installfileDfileJAR包所在路径(如e:\xxxx)DgroupId包的groupid名(可以是自己取的名)DartifactId包的artifactID名(可以是自己取的名)Dversion版本号(可以自己取的,例如
微信小程序中要将一个字符串展示为二维码的形式,需要引入该js文件//Corecodecomesfromhttps://github.com/davidshimjs/qrcodejsvarQRCode;(function(){/Getthetypebystringlength
有些时候只需要获取到字符串中的文字内容,不需要html标签,用以下代码实现//去掉字符串中标签contentcontent.replace(/<.?/g,'').replace(/ /ig,'').replace(/\s/ig,'')
官网已提出,最新版应该没有了,当前框架还是低版本,所以记录记住我bug解决办法publicstaticvoidmain(Stringargs)throwsException{KeyGeneratorkeygenKeyGenerator.getInstance("AES");SecretKey
uniapp上传图片,官方文档写的比较清楚,此处笔记是因为客户特殊要求,上传提示进度条,查到方法特此笔记。uploadImg(){var_selfthis;uni.chooseImage({count:1,sizeType:'copressed',success:(res){console.log(r
做了一个消消乐类似的小游戏,其中需要打乱部分内容,用的list打乱的方式,特此笔记Collections.sort(list);//顺序排列System.out.println(list);Collections.shuffle(list);//混乱的意思System.out.println(list);
有些时候进行一些判断后,根据当前状态需要进行事务回滚,用以下代码实现//手动开启事务回滚TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
1、状态栏高度css中直接写var(statusbarheight)2、$('body').height(document.documentElement.clientHeight)//获取浏览器可视窗口高度、宽度clientWidth3、监听浏览器放大缩小window.onresizefunction
html代码<divid"outerdiv"style"position:fixed;top:0;left:0;background:rgba(0,0,0,0.7);zindex:2;width:100%;height:100%;display:none;"<divid"innerdiv"style"position:abs
服务号跳转微信小程序一直报错{"errcode":40165,"errmsg":"invalidweapppagepathhint:8yDcBa01023942"}
笔记类varthatthisthat.optional()是验证是否为空方法/验证邮箱格式/email(value){returnthat.optional(value)||/^azAZ09.$%&'\/?^_{|}@azAZ
笔记类varthatthisthat.optional()是验证是否为空方法url(value){returnthat.optional(value)||/^(?:(?:(?:https?|ftp):)?//)(?:S(?::S)?@)?(?:
验证身份证号格式,笔记varthatthisthat.optional()是验证是否为空方法idcard(idCard){varregIdCardthat.optional(idCard)||/^19d{5}(18|19|(23d))d{2}((019)|(10|1
客户需求,填写时候直接校验统一社会信用代码,话不多说,直接上代码。复制代码注意作用域问题,就是调用后文方法的指示器varthatthisorgcodevalidate(value){varfirstarray'0','1','2','3','4','5','6','7','8','9','A','B',
微信小程序安卓机无异常,ios样式错位问题出现问题好多次,特此笔记个人认为问题是出现在苹果机和安卓机默认的标签宽度不一致的原因,故如果出现行内元素并