- 博客(26)
- 收藏
- 关注
原创 clip之后裁剪之外的区域不能绘图,绘画无效
在使用beginPath 、clip之前save一下,在clip之后restore,使用的canvas是小程序的canvas,img这里跟h5这里不一样,其他的api基本都一致。
2024-07-29 01:21:18
245
原创 yarn使用npm私服registry安装依赖失败
Couldn't find package "ahooks" on the "npm" registry..tgz: Request failed \"401 Unauthorized\"".
2024-05-27 21:32:31
1513
原创 Cannot install in Homebrew on ARM processor in Intel default prefix
brew upgrade Error: Cannot install in Homebrew on ARM processor in Intel default prefix (/usr/local)!Please create a new installation in /opt/homebrew using one of the"Alternative Installs" from: https://docs.brew.sh/InstallationYou can migrate your
2023-12-24 22:52:41
627
1
原创 vue2中在template里边使用第三方库或者包的方法,例如dayjs
【代码】vue2中在template里边使用第三方库或者包的方法,例如dayjs。
2023-10-29 17:14:20
356
原创 taro中使用defineConstants定义环境变量
after emit SizeLimitsPluginSyntaxError: Unexpected token (1:5)defineConstantstarojstaro环境变量
2023-09-07 23:23:56
952
原创 新版本的jdk生成的keytool没有md5值,新版本的jdk8也没有
第二种方法参考:http://www.360doc.com/content/22/0717/23/26794451_1040252284.shtml。本文链接:https://blog.youkuaiyun.com/weixin_43343144/article/details/128159679。原文链接:https://blog.youkuaiyun.com/weixin_43343144/article/details/128159679。这篇文章也没了,但是通过下面这条指令生成的md5是可以的。
2023-08-12 17:54:32
916
1
原创 vue-cli2升级webpack版本
升级相关依赖这里建议使用yarn add 或者是npm install 来升级依赖包,这样升级之后的版本信息会写入package.json里面这里列出我升级依赖包对应的版本webpack 2.2.1 => 4.43.0vue 2.3.4 => 2.6.11“vue-loader”: “^12.2.1” => “vue-loader”: “^15.9.1” vue...
2020-04-27 15:17:01
1645
原创 使用ajax请求数据并渲染到页面上,无法用jq获取到元素
由于ajax请求需要时间,而渲染一般都是在获取数据之后才开始,如果将("")放在("")放在("")放在(fucntion(){})里获取元素的话将其获取到的元素打印出来,length为0;也就是没有获取到元素,解决办法就是$.ajax({ ..... success:function(res){ $(".lis...
2018-09-28 17:42:31
3096
转载 微信小程序scroll-view的scroll-x失效的解决办法
解决方案。。后来发现其实只要给scroll-view加上white-space: nowrap; ,给scroll-view的子元素box加上display:inline-block就行了。。。就像这样:.scroll-box {white-space: nowrap;}.scroll-box .box{display:inline-block}本文来自 jed_shi 的CS...
2018-09-27 17:56:33
7864
转载 父组件改变子组件的样式
转载一篇博客 https://blog.youkuaiyun.com/csdn_yudong/article/details/79087236
2018-09-17 12:05:32
683
原创 bootstrap高度不统一产生布局错乱的解决方法
bootstrap高度不统一造成的布局错乱初次写博客,只是用来帮助记忆的,如有不正确的地方,还望大神指正:reheight(); $(window).resize(function () { reheight(); }); function reheight() { var arr = []; $('#pro_cont...
2018-09-11 16:44:55
4412
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人