上一页 1 2 3 4 5 6 ··· 8 下一页
摘要: <?php // print_r($_GET); 拿到get方法提交的数据 02.get-post.html表单的数据 // echo $_GET['username']; // 拿到用户名 // echo $_GET['user_Pwd']; // 拿到密码 // print_r($_POST); 阅读全文
posted @ 2021-01-12 14:41 闭上耳朵 阅读(49) 评论(0) 推荐(0) 编辑
摘要: <body> <form action="02.get-post.php" method="POST"> <!-- form标签 可以提交到远程服务器 也可以提交到自己的服务器 写到 action属性里面 提交方式有两种 写在 method里面 一种是 get 另一种是 post--> <!-- 提 阅读全文
posted @ 2021-01-12 14:40 闭上耳朵 阅读(47) 评论(0) 推荐(0) 编辑
摘要: <?php // 1.js中的注释 PHP也一样 // 单行 /* 多行 */ // 2.JS中如何定义变量 // var num = 10; JS //$num = 10; // PHP // 3.JS如何打印内容 // console.log() // JS // echo $num; // P 阅读全文
posted @ 2021-01-12 14:39 闭上耳朵 阅读(72) 评论(0) 推荐(0) 编辑
摘要: <body> <div id="app"> <cpn></cpn> </div> <template id="cpn"> <div> <ccpn></ccpn> <h3>我是子组件</h3> <button @click="btnClick">按钮</button> </div> </templat 阅读全文
posted @ 2020-12-29 18:22 闭上耳朵 阅读(93) 评论(0) 推荐(0) 编辑
摘要: <body> <div id="app"> <cpn></cpn> <cpn></cpn> <cpn ref="aaa"></cpn> <button @click="btnClick">点击</button> </div> <template id="cpn"> <div> <h3>我是子组件</ 阅读全文
posted @ 2020-12-29 18:19 闭上耳朵 阅读(67) 评论(0) 推荐(0) 编辑
摘要: <body> <div id="app"> <!-- 2.监听子组件发射的事件 然后再父组件处理事件 --> <cpn @itemclick="cpnClick"></cpn> </div> <template id="cpn"> <div> <button v-for="item in categ 阅读全文
posted @ 2020-12-29 18:06 闭上耳朵 阅读(86) 评论(0) 推荐(0) 编辑
摘要: <body> <!-- 父组件模板 --> <div id="app"> <!-- 如果属性名有 大写 要换小写 并用 - 隔开 如下 --> <cpn :cinfo="info" :child-my-message="message"></cpn> </div> <!-- 子组件模板 --> <t 阅读全文
posted @ 2020-12-29 18:00 闭上耳朵 阅读(130) 评论(0) 推荐(0) 编辑
摘要: <body> <div id="app"> <!-- 组件的变量名不能有大写 会报错 --> <cpn :cmessage="message" :clis="lis"></cpn> </div> <template id="cpn"> <div> <p> {{ cmessage }} </p> <u 阅读全文
posted @ 2020-12-29 16:19 闭上耳朵 阅读(1475) 评论(0) 推荐(0) 编辑
摘要: <body> <div id="app"> <cpn1></cpn1> </div> <template id="cpn1"> <div> <!-- <h2> {{ title }} </h2> 组件内部不能访问 Vue实例对象里面的数据的 如果要动态绑定数据 要在注册组件内部调用里面的 data数 阅读全文
posted @ 2020-12-29 16:16 闭上耳朵 阅读(115) 评论(0) 推荐(0) 编辑
摘要: <body> <div id="app"> <cpn1></cpn1> <cpn2></cpn2> </div> </body> <!-- 方法 1 --> <!-- 组件和模板分离写法 写在script标签里面 类型是 x-template --> <script type="x-template 阅读全文
posted @ 2020-12-29 16:14 闭上耳朵 阅读(78) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 8 下一页