HadSky轻论坛数据导入HadSky轻商城字段对应说明
版块导入对应:
{
"title":"name",
"webtitle":"seo_title",
"webkeywords":"seo_keywords",
"webdescription":"seo_description"
}
文章导入对应:
{
"looknum":"look_count",
"zannum":"zan_count",
"fs":"reply_count",
"content":"content_text",
"sortid":"fid",
"post
2020-07-18
K.date方法
版本:4.0.0
K.date方法可以获取或格式化一个时间戳为指定的日期格式。
/*
* @param format 格式,默认Y-m-d H:i:s,不区分大小写
* @param time 基于这个时间戳来格式化
*/
K.date(format = 'Y-m-d H:i:s', time = false)
用法举例:
K.date();
// 返回"2021-05-20 17:35:18"
K.date('y');
// 返回"2021"
K.date(false,153479884);
2021-05-20
后台 - 高级 - 数据库配置 参数说明
{
// 数据库类型,此处也是是否链接数据库的关键,为空则为不链接数据库
'type' : 'sqlite',
// 服务器地址
'hostname' : '127.0.0.1',
// 数据库名
'database' : 'hadsky8',
// 用户名
'username' : 'root',
// 密码
'password' : 'hadsky.com',
// 端口
'hostport' : '',
// 连接dsn
'dsn' : 'sqlite:' . PK_D
2020-08-20
K.return_set_html方法_快速生成HTML输入框
版本:4.0.0
K.return_set_html方法可以快速生成HTML输入框,type支持:text,number,email,label,password,checkbox,checkboxs,textarea,code,nav,json,editor,switch,toggle,upload,uploads,time
/*
* data:[{"name":"","title":"","content":"","type":"","value":""},]
*/
K.return_set_
2021-05-21
K.keditor方法_KEditor精简编辑器
版本:4.0.0
K.keditor方法可以将textarea控件包装为简单的编辑器,该编辑器为puyuetian框架内置编辑器,一般用于小屏设备。
// selector为textarea对象
// options = {
image: true, // 是否显示上传图片按钮
maxLength: 1000, // 最大输入的字符数
uploadCount: 9, // 一次可以上传多少个图片
height: 0 // 高度,0为自适应
// }
K.keditor(selector, o
2021-06-25