上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 38 下一页

2022年12月7日

总结数据监视

摘要: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <!-- Vue监视数据原理 1.vue会监视data中所有层次的数据 2.如何监视对象中数据 通过setter实现监视,切要在new Vue时就传入要检测的数据 阅读全文

posted @ 2022-12-07 20:45 PLC学徒 阅读(32) 评论(0) 推荐(0)

模拟数据监控(get和set)

摘要: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <!-- 1.自动生成get和set好处 1.可以永远给下一层级找到get和set 2.更加简洁(自己写的get和set,修改值比较麻烦:vm.__data.na 阅读全文

posted @ 2022-12-07 20:44 PLC学徒 阅读(76) 评论(0) 推荐(0)

2022年12月5日

列表排序(监视和计算属性)

摘要: <!DOCTYPE html><html> <head> <meta charset="utf-8"> <title></title> <!-- 实现需求:模糊检索下列数据 1.收集用户的输入框的内容 2. 使用watch监视属性去监视keyWord的值(监视) 3.使用computed计算属性去实 阅读全文

posted @ 2022-12-05 21:23 PLC学徒 阅读(39) 评论(0) 推荐(0)

模糊查询(监视属性和计算属性实现)

摘要: <!DOCTYPE html><html> <head> <meta charset="utf-8"> <title></title> <!-- 实现需求:模糊检索下列数据 1.收集用户的输入框的内容 2. 使用watch监视属性去监视keyWord的值(监视) 3.使用computed计算属性去实 阅读全文

posted @ 2022-12-05 21:22 PLC学徒 阅读(87) 评论(0) 推荐(0)

过滤器的使用(filter)

摘要: <!DOCTYPE html><html> <head> <meta charset="utf-8"> <title></title> <!-- 过滤器: 定义:对要显示的数据进行特定格式化后在现实 语法: 1.注册过滤器:Vue.filter(name,callback)或new Vue{filt 阅读全文

posted @ 2022-12-05 21:21 PLC学徒 阅读(169) 评论(0) 推荐(0)

自定义命令(directive)

摘要: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <script src="../vue.js"></script> </head> <body> <div id="root"> <!-- 1.定义一个v-big 阅读全文

posted @ 2022-12-05 21:20 PLC学徒 阅读(129) 评论(0) 推荐(0)

2022年10月31日

打开链接,退出链接

摘要: 阅读全文

posted @ 2022-10-31 09:58 PLC学徒 阅读(39) 评论(0) 推荐(0)

获取CSS样式并判断CSS样式

摘要: 需求:鼠标移入删除按钮,无法编辑他人工时,编辑按钮应置灰展示 如下图: 1.使用两个方法 Item:get Css Value(获取css样式方法) Object 填写要获取的元素(“编辑”) input(按f12检查该条元素写的背景色)注意看自己要获取的是什么样的css方法 Output(取个变量 阅读全文

posted @ 2022-10-31 09:56 PLC学徒 阅读(749) 评论(0) 推荐(0)

事件使用·

摘要: <!DOCTYPE html><html> <head> <meta charset="utf-8"> <title></title> <script src="../vue/vue.js"> </script> <div id="root"> <button v-on:click="showInf 阅读全文

posted @ 2022-10-31 09:41 PLC学徒 阅读(37) 评论(0) 推荐(0)

事件修饰符

摘要: <!DOCTYPE html><html> <head> <meta charset="utf-8"> <title></title> <style> #passive{ width: 100px; height: 100px; background-color: #00FFFF; overflow 阅读全文

posted @ 2022-10-31 09:40 PLC学徒 阅读(86) 评论(0) 推荐(0)

上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 38 下一页

导航