摘要: v-for: v-for 指令需要以 site in sites 形式的特殊语法, sites 是源数据数组并且 site 是数组元素迭代的别名。 demo1. <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> 阅读全文
posted @ 2020-01-29 16:32 MyBeans 阅读(489) 评论(0) 推荐(0) 编辑
摘要: 1. load方式是延迟加载,只有属性被访问的时候才会调用sql语句 get方式是非延迟加载,无论后面的代码是否会访问到属性,马上执行sql语句 2. 都通过id=500去获取对象1. get方式会返回null2. load方式会抛出异常 阅读全文
posted @ 2020-01-29 16:02 MyBeans 阅读(252) 评论(0) 推荐(0) 编辑