- 【新增】评论匿名功能
- 【新增】回复评论功能
- 【优化】列表点评论按钮跳转到详情页
- 【优化】匿名自动生成随机昵称
- 【修复】低版本 Android ssl 证书版本不支持无法访问的问题
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Apply ALIYUN DNS API TOKEN: https://ak-console.aliyun.com/#/accesskey | |
export Ali_Key="" | |
export Ali_Secret="" | |
# issue cert | |
~/.acme.sh/acme.sh --issue \ | |
--dns dns_ali \ | |
-d abc.com \ | |
-d "*.abc.com" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Apply DNSPOD.CN API TOKEN: https://www.dnspod.cn/console/user/security | |
export DP_Id="DNSPOD_ID" | |
export DP_Key="DNSPOD_KEY" | |
~/.acme.sh/acme.sh --issue --dns dns_dp -d *.cloud.ijason.cc -d cloud.ijason.cc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* 简单的使用 PDO 操作 MySQL 数据库类 | |
* 类为静态类,全部静态调用 | |
*/ | |
class Mysql | |
{ | |
private static $conn; | |
public static function getInstance () { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Full-Date formater | |
* @author jasonelchen | |
* @param date 时间 | |
* @param format 格式 | |
*/ | |
export function dateFormatter (date: Date, format: string) { | |
const o = { | |
/** | |
* 完整年份 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Object deepclone | |
* @param {Object} obj the object need clone | |
*/ | |
function deepclone (obj) { | |
if (typeof obj !== 'object' || obj === null) { | |
return obj | |
} | |
const newObj = {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const arr = [16, 31, 12, 1, 9, 23, 10] | |
// bubble sort | |
function bubble (arr) { | |
for (let i = 0; i < arr.length - 1; i++) { | |
for (let j = 0; j < arr.length - i - 1; j++) { | |
if (arr[j] > arr[j+1]) | |
[ arr[j], arr[j+1] ] = [ arr[j+1], arr[j] ] | |
} | |
} |