简介
该用户还未填写简介
擅长的技术栈
可提供的服务
暂无可提供的服务
添加第二个参数:JSON_UNESCAPED_UNICODE
<template><div class="editor-container"><quill-editorv-if="showEditor"v-model="content"ref="myQuillEditor":options="editorOption"@blur="onEditorBlur($event)" @focus="onEditorFocus($even
data () {return {screenWidth: document.body.clientWidth}},mounted () {// 监听窗口大小window.onresize = () => {return (() => {this.screenWidth = docu...
mounted () {// 注册监听window.addEventListener('beforeunload', e => this.beforeunloadHandler(e))},destroyed () {// 非窗口关闭的跳转直接卸掉监听window.removeEventListener('beforeunload', e => this.b...
setCookie: function (cname, cvalue, exdays) {let d = new Date()d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000))let expires = 'expires=' + d.toUTCString()document.cookie = cname + '...
例子是按照is_publish分类(0/1)0的时候按照created_at倒序,1的时候按照deadline倒序SELECT*FROM`test` AS tORDER BYIF ((`t`.`is_publish` = 0),0,`t`.`deadline`) DESC,`t`.`created_at` DESC...
一个样式:class="{makeColor:username!=''}"多个样式(三元):class="[email!=''?'makeColor':'',result.email===false?'makeColorRed':'']"