会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
飞尽堂前燕
善行无迹 恒德乃足
博客园
首页
新随笔
联系
订阅
管理
2024年1月19日
angularjs1.x 性能优化笔记
摘要: 1.bind-html 父级页面如果使用bind-html进行绑定子级组件 例如: <div bind-html='vm.template1'> <div bind-html='vm.template2'> <div bind-html='vm.template3'> 如果需要根据某个属性判断是否展
阅读全文
posted @ 2024-01-19 14:49 飞尽堂前燕
阅读(13)
评论(0)
推荐(0)
2023年6月12日
如何查看SSL证书的OCSP地址
摘要:
阅读全文
posted @ 2023-06-12 11:11 飞尽堂前燕
阅读(14)
评论(0)
推荐(0)
2023年4月26日
vue-router4 配置懒加载 页面加载时展示loading
摘要: 懒加载写法 { path: "/", name: "index", component: () => import("../views/Home.vue"), } 创建Loading组件 并引入到顶层组件中 使用store控制loading组件是否展示 包装懒加载写法 const lazyLoad
阅读全文
posted @ 2023-04-26 16:20 飞尽堂前燕
阅读(238)
评论(0)
推荐(0)
2023年2月16日
React 使用input限制字符长度时,部分手机(ios)输入中文时出现英文拼音
摘要: 1.在使用input的onInput方法时,控制字符长度尽量使用input maxLength属性进行控制 不能使用以下方式 handleOnInput = () => { let filterText = (e.target.value || '').replace(/[^\u4e00-\u9fa
阅读全文
posted @ 2023-02-16 18:38 飞尽堂前燕
阅读(327)
评论(0)
推荐(0)
2023年1月16日
angular6升级到9后使用ng serve指令报错 Cannot use [chunkhash] or [contenthash] for chunk in '[name].[chunkhash:20].js' (use [hash] instead)
摘要: // 需要将angular.json中的 outputHashing 设置为none "outputHashing": "none", 详情见: https://github.com/angular/angular-cli/issues/10411
阅读全文
posted @ 2023-01-16 13:11 飞尽堂前燕
阅读(339)
评论(0)
推荐(0)
2023年1月13日
升级到Angular9 使用loadChildren不生效问题(打包没有chunk.js文件,全部都打包到了main.js)
摘要: angular9如需是loadChildren生效 需要修改tsconfig.json 里面的module为esnext 如果module的值为commonJS则不会生效 { "compilerOptions":{ "module": "esnext" } } 具体链接 https://github
阅读全文
posted @ 2023-01-13 18:05 飞尽堂前燕
阅读(119)
评论(0)
推荐(0)
2022年11月28日
canvas 压缩图片toDataURL 传入图片质量压缩不生效问题
摘要: type 不能是image/png // image/jpeg 是可以的canvas.toDataURL('image/jpeg', 0.2)
阅读全文
posted @ 2022-11-28 10:25 飞尽堂前燕
阅读(881)
评论(0)
推荐(0)
2022年11月24日
html2canvas 部分手机绘制成图片后 字体重叠或者没有对齐
摘要: 需要给对应的文字增加 font-family: PingFangSC-Medium, PingFang SC, -apple-system, Helvetica, sans-serif;
阅读全文
posted @ 2022-11-24 11:03 飞尽堂前燕
阅读(528)
评论(0)
推荐(0)
2022年11月22日
html2canvas 在ios手机绘制时白屏问题
摘要: 以下是我准备生成分享图片的dom,这边使用transform:translateY(100vh); 来隐藏分享dom <div style="width:100%;height:100;position:fixed;left:0;top:0;transform:translateY(100vh);m
阅读全文
posted @ 2022-11-22 14:16 飞尽堂前燕
阅读(723)
评论(0)
推荐(0)
2022年11月11日
vscode angular-language-service插件 安装后导致vscode卡顿问题
摘要: 打开设置,搜索 disableAutomaticNgcc 打打勾就可以了
阅读全文
posted @ 2022-11-11 14:53 飞尽堂前燕
阅读(117)
评论(0)
推荐(0)
下一页
公告