摘要:
// 初始化表格参数配置 Table.api.init({ extend: { index_url: 'miaomuku/index' + location.search, add_url: 'miaomuku/add', edit_url: 'miaomuku/edit', del_url: 'm 阅读全文
摘要:
控制器 public function index() { $this->relationSearch = true; $list = $this->model ->with("category") ->field('home_articles.*,category.name as category 阅读全文
摘要:
field: 'info', title: __('Info'), align:"left", cellStyle: {css: {"max-width": "300px","white-space":"pre-line","word-wrap":"break-word","word-break": 阅读全文
摘要:
$(".btn-add").data("area",["1000px","600px"]); $(".btn-edit").data("area",["1000px","600px"]); table.on('post-body.bs.table',function(){ $(".btn-edito 阅读全文
摘要:
定位到本地对应文件夹,打开 Git Bash $ git reflog //查看历史版本 如果要回退到 commit:地图选择插件 也就是7383322这个版本,执行 $ git reset 7383322 之后执行强制推送 $ git push origin HEAD --force 阅读全文
摘要:
首先安装GIT打开Git Bash git config --global user.name "your name" //配置昵称 git config --global user.email "your email" //配置邮箱 git config --global credential.h 阅读全文
摘要:
POST function curl_post($url, $header, $content) { $ch = curl_init(); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_URL, $u 阅读全文
摘要:
function getDateSeven($time = '', $format = 'Y-m-d') { $time = $time != '' ? $time : time(); //获取当前周几 // $week = date('w', $time); $date = []; for ($i 阅读全文