摘要:
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Title</title></head><body><div id='app'><son :money="800"></son></div></body></htm 阅读全文
2018年9月18日
摘要:
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>xieting</title></head><body><!--父亲绑定事件,儿子触发这个事件 单项数据流--><div id='app'>父亲:{{money}} 阅读全文
2018年9月17日
2018年9月16日
摘要:
<style type="text/less"> #div1{ width: 1000px; height: 600px; background: #fa9752; } //媒体查询 @media all and (max-width: 600px){ /*当屏幕小于等于 600px 时要做的样式* 阅读全文
2018年9月14日
摘要:
``` let vm=new Vue({ //根实例 el:'#app', data:{//都是数据 }, methods:{ // methods 和data中的数据会全部放到vm上,而且名字不能冲突,冲突会报错,methods中的this指向的都是实例 fn(event,a){console.l 阅读全文