赣南脐橙

keybr

佰草伐

导航

上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 159 下一页

2020年10月14日 #

if ... else 语句

摘要: 让我们看看到目前为止你将会在JavaScript中用到的最常见的条件语句类型 — if ... else语句。 基本的的 if…else 语法 基本的if…else语法看起来像下面的 伪代码: if (condition) { code to run if condition is true } e 阅读全文

posted @ 2020-10-14 15:43 佰草伐 阅读(296) 评论(0) 推荐(0) 编辑

添加一个图像切换器

摘要: 这里将用新的 DOM API 为网页添加另一张图片,并用 JavaScript 使图片在点击时进行切换。 首先,找到另一张你想要在你的页面上展示的图片,且尺寸与第一张图片尽可能相同。 将这张图片储存在你的images目录下。 将图片重命名为'firefox2.png'(去掉引号)。 打开 main. 阅读全文

posted @ 2020-10-14 15:37 佰草伐 阅读(99) 评论(0) 推荐(0) 编辑

2020年10月12日 #

css 中的z-index

摘要: css中z-index属性在做项目时,常常会用到弹出一个层,然后在这个层上进行操作,操作完成时就关闭弹出层,或者点击别的地方进行关闭层。通常都会在p样式中设置z-index的值,比如父层设置z-index:100,子层就设置大于100,起到弹出父层时,子层能够显示。例如(简单写一下): <p sty 阅读全文

posted @ 2020-10-12 14:31 佰草伐 阅读(210) 评论(0) 推荐(0) 编辑

2020年9月15日 #

dede 添加了字段 alt信息无法全部替换解决方案!

摘要: $this->Fields['typename'] = $this->TypeLink->TypeInfos['typename']; @SetSysEnv($this->Fields['typeid'],$this->Fields['typename'],$this->Fields['id'],$ 阅读全文

posted @ 2020-09-15 16:31 佰草伐 阅读(117) 评论(0) 推荐(0) 编辑

2020年9月10日 #

thinkphp 前台输出

摘要: <?php namespace app\index\controller; use think\Controller; use think\facade\View; class Demo7 extends Controller { public function test1() { $content 阅读全文

posted @ 2020-09-10 16:01 佰草伐 阅读(197) 评论(0) 推荐(0) 编辑

thinkphp 数据库查询数据

摘要: <?php namespace app\index\controller; use app\index\model\Daohang; class Demo6 { public function get() { //dump(Daohang::get(3)); $res = Daohang::fiel 阅读全文

posted @ 2020-09-10 15:51 佰草伐 阅读(134) 评论(0) 推荐(0) 编辑

thinkphp 数据库操作

摘要: <?php namespace app\index\controller; use think\Db; class Demo5 { public function find() { $res = Db::table('daohang') // ->field('id,title,url') ->fi 阅读全文

posted @ 2020-09-10 15:30 佰草伐 阅读(83) 评论(0) 推荐(0) 编辑

thinkphp 链接数据库

摘要: <?php namespace app\index\controller; use think\Db; class Demo4 { public function conn1() { return Db::table('daohang')->where('id',1)->value('title') 阅读全文

posted @ 2020-09-10 15:26 佰草伐 阅读(106) 评论(0) 推荐(0) 编辑

thinkphp 依赖注入

摘要: <?php namespace app\index\controller; /* *URl访问 */ class Demo1 { public function getName($name="peter") { return $name; } //依赖注入 public function getMe 阅读全文

posted @ 2020-09-10 15:24 佰草伐 阅读(184) 评论(0) 推荐(0) 编辑

2020年9月8日 #

strrchr — 查找指定字符在字符串中的最后一次出现

摘要: strrchr — 查找指定字符在字符串中的最后一次出现 说明 strrchr ( string $haystack , mixed $needle ) : string 该函数返回 haystack 字符串中的一部分,这部分以 needle 的最后出现位置开始,直到 haystack 末尾。 参数 阅读全文

posted @ 2020-09-08 11:59 佰草伐 阅读(306) 评论(0) 推荐(0) 编辑

上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 159 下一页

keybr

php基础知识

Wood Furniture