
Web
Web
worldzhy
感觉
展开
-
angularjs 理解ngOptions
先上一段代码:首先,将ng-options表达式分成两部分:第一部分是A as B,A是将要赋值于SomeModel的(藏在背后的),B是将会显示在select选择器上的;第二部分是for C in D,这就是一个for..in循环。原创 2016-09-02 16:17:13 · 624 阅读 · 0 评论 -
angular 去掉ng-repeat自动添加的$$hashkey
将:ng-repeat="item in items " 改成:ng-repeat=“item in items track by $index”转载 2016-07-31 11:23:58 · 5072 阅读 · 0 评论 -
wordpress 安装插件
wordpress安装插件时会提示FTP连接解决方法:第一步、在wp-config.php中加入以下命令:#解决安装WordPress主题及插件需要输入FTP问题define("FS_METHOD", "direct");define("FS_CHMOD_DIR", 0777);define("FS_CHMOD_FILE", 0777);第二步、修改文件夹权限chmo...原创 2018-08-09 11:16:34 · 880 阅读 · 0 评论 -
gatsby 安装失败
由于 sharp-libvips 的下载安装失败导致。删除已有的 libvips 安装包,重新安装 gatsby 成功。$ ls ~/.npm/_libvips/libvips-8.7.4-darwin-x64.tar.gz libvips-8.9.0-darwin-x64.tar.gz$ rm ~/.npm/_libvips/*$ npm init gatsbyThanks! Here's what we'll now do: 🛠 Create a new Gatsby si..原创 2022-04-28 16:36:06 · 596 阅读 · 2 评论 -
ghost Invite people error 504
官方文档https://ghost.org/docs/concepts/config/#mailGhost在Ubuntu上安装完成,正常运行。向他人发送账号邀请时出现问题这个接口 /ghost/api/v3/admin/invites 发生504错误查看ghost配置文件config.production.json,将"mail": {"transport": "Direct", ......} 改为"mail": {"transport": "sendmail", .......原创 2020-10-27 00:46:53 · 250 阅读 · 0 评论 -
ghost Ubuntu环境下安装
严格按照官方文档进行搭建https://ghost.org/docs/install/ubuntu/adduser ghost-elegantsudo mkdir -p /var/www/elegantsudo chown ghost-elegant:ghost-elegant /var/www/elegantsudo chmod 775 /var/www/elegant// 开始安装ghost-elegant@iZwz9cx35156qjuf3z1zuyZ:/var/www/eleg.原创 2020-10-25 23:13:39 · 2197 阅读 · 0 评论 -
ghost 开发主题
首先学习一下ghost主题开发用到的语言https://handlebarsjs.com/guide/expressions.html原创 2020-06-28 00:37:54 · 400 阅读 · 0 评论 -
ghost API介绍
API Client// https://ghost.org/docs/api/v3/javascript/content/// https://ghost.org/docs/api/v3/javascript/admin/yarn add @tryghost/content-apiyarn add @tryghost/admin-apiToolsyarn add @tryghost/helpersyarn add @tryghost/stringconst {tags,.原创 2020-06-27 15:48:09 · 697 阅读 · 0 评论 -
ghost 通过docker安装
本地MacBook安装$ docker pull ghost按照官方指导的默认启动指令,你会得到这样的结果AWS EC2上安装ubuntu@ip-172-31-0-144:~$ docker pull ghostubuntu@ip-172-31-0-144:~$ docker run -d --name some-ghost -e url=http://localhost:3001 -p 3001:2368 ghost7d5d2dbfc65c4d1a1969193da07..原创 2020-06-27 03:09:56 · 963 阅读 · 4 评论