摘要:
英文不好,英文版是半懂不懂,加上中文版对照,开始啦!!! 2.1 client-side web application 的生命周期概览 page building阶段 Event handling阶段 单线程模型: only a single piece of code can be execut 阅读全文
摘要:
NaN: 代表一个非数字的值 Number.NaN 判断一个值是否为NaN? isNaN(NaN) Number.isNaN(NaN) x !== x Number.isNaN()和isNaN()的差别? isNaN: 当前值是NaN,或者将其强制转换为数字后是NaN, 则返回true Nubmer 阅读全文
摘要:
id class :require :nth-of-type :root :hover :focus ... [type=text] p ::before ::placeholder 两个字符 :: :where +, >, ~, " ", and || :is() :not() :has() 已括 阅读全文
摘要:
app.js文件中, 断点打到此处然后: 关闭控制台重新打开就能看见了 阅读全文
摘要:
实现的功能: 该树形表只有一级子节点 该子节点只能在当前父节点中拖拽, 不能跨父节点拖拽 同时只能展开一个父节点, 其他父节点闭合 实现的关键点: mounted 挂载 初始化sortable 拖拽完onEnd方法返回的index扁平化数组的排序 调用该方法getTable() 后台多返回一个kid 阅读全文
摘要:
tableData格式: 关键: generateTable()函数,通过goodsSpecList生成下图的格式 <product-spec v-for="(s, i) in form.goodsSpecList" :key="s.specName" :spec="s" :index="i" @s 阅读全文
摘要:
https://developers.weixin.qq.com/community/develop/article/doc/000202ebeb046859fc99548c756813 阅读全文
摘要:
怎么使用 v-model 子组件 $attrs @input 调用组件: <WangEditor v-model="form.desc"></WangEditor> 封装组件: <div style="border: 1px solid #ccc;"> <Toolbar/> <Editor v-bi 阅读全文
摘要:
@click.native 小程序不能使用 只能在根节点绑定事件,使用$emit(), 监听子组件的emit事件 阅读全文
摘要:
<scroll-view @scrolltolower="scrollBottom"> <product-list :goodspage="goodspage"></product-list> </scroll-view> scrollBottom() { console.log('scroll b 阅读全文