记录一下QQ小程序打包后vendor.js过大的问题

  • Post author:
  • Post category:小程序

我的小程序是通过vue-cli创建的uni-app程序,在微信中打包没有任何问题,编译后的vendor.js只有500多K。 但是使用QQ编译时,编译后的vendor.js有惊人的2.4M,导致无法在真机预览。 针对这个问题,在网上也找了各种解决办法,例如分包,例如在启动命令中加上 UNI_MINIMIZE=true、--minimize等等等等,但是效果微乎其微。 终于在逛ucloud社区的时候…

继续阅读 记录一下QQ小程序打包后vendor.js过大的问题

ES5中的继承和ES6中的类继承模式详解

  • Post author:
  • Post category:其他

ES5继承 1. 原型链继承 function Zoo() { this.zoo = '动物园'; } function panda(name) { this.name = name; } panda.prototype = new Zoo(); var animal = new panda('熊猫'); console.log(animal.zoo + '里面有一只' + animal.name…

继续阅读 ES5中的继承和ES6中的类继承模式详解

关于jQuery trim 方法兼容性问题

  • Post author:
  • Post category:其他

关于jQuery trim 方法兼容性问题,需要注意的地方: 当ie版本 <=8,使用:$("#input").val().trim(); // 对象不支持“trim”属性或方法 正确的方法: $.trim($("#input").val()); // 各种兼容啊 jQuery trim 源码: ... var trim = "".trim; ... // Use native String…

继续阅读 关于jQuery trim 方法兼容性问题

typora将Markdown文件转换为PDF没有反应

  • Post author:
  • Post category:其他

Qustion typora将Markdown文件转换为PDF没有反应,但是转换成html成功 注意:我的系统是Win10 Answer step1: win+R,输入services.msc step2:找到“Print Spooler”服务,查看启动状态( 一定要双击打开改服务查看状态,有时从页面直接看状态有迷惑行为 ) step3:将服务状态改为正在运行 到此,问题完美解决 ~ ~ ~ 版权…

继续阅读 typora将Markdown文件转换为PDF没有反应

CentOS7.5usb安装盘制作,解决linuxefi /images/pxeboot/vmlinuz inst.stage2=hd:LABEL=CentOS\x207\x20x\86_64问题

  • Post author:
  • Post category:linux

CentOS7.5usb安装盘制作, 解决linuxefi /images/pxeboot/vmlinuz inst.stage2=hd:LABEL=CentOS\x207\x20x\86_64问题 网上找了很多相关的解决方法,大概解决方案是在英文安装install centos 7提示的时候,输入e然后有下面两行: linuxefi /images/pxeboot/vmlinuz inst.st…

继续阅读 CentOS7.5usb安装盘制作,解决linuxefi /images/pxeboot/vmlinuz inst.stage2=hd:LABEL=CentOS\x207\x20x\86_64问题

找不到’openssl / opensslv.h’文件

  • Post author:
  • Post category:其他

Every system update is an adventure when you're a software engineer.  We do everything we can to use virtual machines so that we have (almost) complete control of the environment but sometimes you sim…

继续阅读 找不到’openssl / opensslv.h’文件

Postgresql数据库介绍7——使用

  • Post author:
  • Post category:其他

查询(Queries) 概述(Overview) The process of retrieving or the command to retrieve data from a database is called a query. In SQL the SELECT command is used to specify queries. The general syntax of the SE…

继续阅读 Postgresql数据库介绍7——使用

java File获取字节流

  • Post author:
  • Post category:java

/*文件64位编码*/ public static void main(String[] args) { byte[] fileByte = toByteArray(newFile); String imgStr = new BASE64Encoder().encode(fileByte); } /*读取文件的字节数组*/ public static byte[] toByteArray(File…

继续阅读 java File获取字节流

世界各国“我爱你”翻译大全

  • Post author:
  • Post category:其他

英语:爱老虎油 汉语:我爱你 日语:阿姨兮带路 法语:也带吗 德语:一西里拔弟西 朝鲜:3郎还有 马来语:酒呀新塔木 希腊语:萨哈泼 尤太语:啊你偶和夫偶他系 匈牙利:塞来特可来 爱沙尼亚:米那阿马斯叹赛 芬兰:名那啦卡司谈洗奴娃 比利时:一客也有狼鸡 意大利语:提啊么 拉托维亚:一司特喂米卢 立陶宛:踏付米卢 马其顿:音红博客 波兰语:烤蛤蟆去 葡萄语:哎无啊木腿 罗马尼亚:有背4克 荷兰:啊来…

继续阅读 世界各国“我爱你”翻译大全

socket的accept: Invalid argument问题

  • Post author:
  • Post category:其他

1 void local_sdk_server::wait_remote_client_connect_and_comm() 2 { 3 /*服务器服务启动,等待客户端的链接的到来*/ 4 //sockaddr_in client_addr; 5 sockaddr client_addr; 6 socklen_t len; 7 user users;//client

继续阅读 socket的accept: Invalid argument问题