public function index() { $ad = new Destoon_ad(); $data=[ 'url'=>'www.baidu.com', 'pid'=>'6666' ]; $where = ['aid'=>1]; $ad->save($data,$where); dump( ...
分类:
Web程序 时间:
2018-04-15 21:02:32
阅读次数:
225
添加操作 public function index() { //1.实列化模型,创建模型对象 $ad = new Destoon_ad(); //2.创建数据,采用对象方式 $ad->pid = '666'; $ad->url = 'www.666.com'; //3.执行添加操作 $result ...
分类:
Web程序 时间:
2018-04-15 19:50:56
阅读次数:
303
在模块下创建modle文件夹 <?phpnamespace app\index\model;use think\Model; class Destoon_ad extends Model{ //创建模型成功;} 实例化,查询模型 public function index() { $ad = new ...
分类:
Web程序 时间:
2018-04-15 18:49:28
阅读次数:
234
config配置新建datebase.php 控制器引入use think\Db; //获取数据库实例对象 $link = Db::connect(); //用实例查询类方法 $result = $link->table('destoon_ad')->select(); //输出结果集 dump($ ...
分类:
数据库 时间:
2018-04-15 11:48:29
阅读次数:
379
//thinkphp的原生查询 $sql = "select pid,url from destoon_ad where aid>3"; $result = Db::query($sql); dump($result); 参数绑定 $sql = "select pid,url from destoo ...
分类:
数据库 时间:
2018-04-15 11:38:59
阅读次数:
1269
python 全栈开发,Day19(组合,组合实例,初识继承) 一、组合 表示的一种什么有什么的关系 先来说一下,__init__的作用 1 2 3 4 5 6 7 8 9 10 class Dog: def __init__(self, name, kind, hp, ad): self.name ...
分类:
编程语言 时间:
2018-04-12 22:34:04
阅读次数:
212
[toc] Ad Hoc 是指ansible下临时执行的一条命令,并且不需要保存的命令,对于复杂的命令会使用playbook。Ad hoc的执行依赖于模块,ansible官方提供了大量的模块。 如:command、raw、shell、file、cron等,具体可以通过ansible doc l 进行 ...
分类:
其他好文 时间:
2018-04-12 22:16:55
阅读次数:
143
#include <algorithm> algorithm头文件中主要包含的是一大堆模板函数,即STL库提供的算法,可以认为每个函数在很大程度上是独立的。提供的算法种类有: 1)adjacent_find //检测区间内第一对相等的相邻元素 template<class FwIt> FwIt ad ...
分类:
编程语言 时间:
2018-04-12 13:43:57
阅读次数:
222
1,对象的交互 人和狗大战之交互 class Person: role = 'person' def __init__(self,name,sex,hp,ad): self.name= name self.sex = sex self.hp = hp self.ad = ad def attack( ...
分类:
其他好文 时间:
2018-04-11 21:44:02
阅读次数:
212
华为AD9430DN、Press CTRL+T for Full Memory Test in 1 Seconds: 0
分类:
其他好文 时间:
2018-04-11 15:51:00
阅读次数:
517