宝塔面板安装php 7.4失败
http://www.gsgundam.com/2020-09-22-bt-panel-php-install-failed/
居然安装失败了,消息列表写着安装[php-7.4]【已完成】耗时29秒,然而软件商店里php7.4还显示着“安装”按钮。
原因很明确了,应该安装libjpeg包就可以了。
执行安装命令:
yum install libjpeg libjpeg-devel
搞定。安装php7.4。成功。
http://www.gsgundam.com/2020-09-22-bt-panel-php-install-failed/
居然安装失败了,消息列表写着安装[php-7.4]【已完成】耗时29秒,然而软件商店里php7.4还显示着“安装”按钮。
原因很明确了,应该安装libjpeg包就可以了。
执行安装命令:
yum install libjpeg libjpeg-devel
搞定。安装php7.4。成功。
https://qa.1r1g.com/sf/ask/2512542371/
日期以ISO 8601格式返回:
2015-11-09T10:46:15.097Z
我希望我的日期格式如下:
09/11/2015
因为它是一个UTC日期,只是传递它new Date()会增加时区的差异,而不是总是输出正确的日期.
如果您需要验证日期,则有用于检查有效UTC日期的正则表达式.
var date = this.created_at.split('T') // split on the "T" -> ["2015-11-09", "10:..."]
.shift() // get the first part -> "2015-11-09"
.split('-') // split again on "-" -> ["2015", "11", "09"]
.reverse() // reverse the array -> ["09", "11", "2015"]
.join('/') // join with "/" -> "09/11/2015"
*{
moz-user-select: -moz-none;
-moz-user-select: none;
-o-user-select:none;
-khtml-user-select:none;
-webkit-user-select:none;
-ms-user-select:none;
user-select:none;
}