冰冰点灯
照亮我的家门
摘要: 出现以下问题是在mounted()中使用官方示例的时候报了以下错误:Error in mounted hook: “TypeError: Cannot read property ‘init’ of undefined”或 Cannot read property ‘init’ of undefin 阅读全文
posted @ 2022-12-02 10:10 冰冰点灯 阅读(407) 评论(0) 推荐(0) 编辑
摘要: 1.应用生命周期 app.js //1.应用第一次启动的就会触发的事件 onLaunch(){ // 应用启动获取用户的个人信息 console.log("onLaunch"); // js跳转不能触发 onPageNotFound事件 // wx.navigateTo({ // url:'/11/ 阅读全文
posted @ 2021-12-07 14:45 冰冰点灯 阅读(31) 评论(0) 推荐(0) 编辑
摘要: 自定义组件方法 创建components文件夹,创建component自定义组件 新增组件:在json文件“usingComponents”使用组件(键值对)例子:"Tabs" : "../../componets/Tabs/Tabs"。 使用组件:json引用组件对应的xml文件中,看做普通标签使 阅读全文
posted @ 2021-12-06 17:15 冰冰点灯 阅读(82) 评论(0) 推荐(0) 编辑
摘要: 1.view代替原来的div标签 <view hover-class="h-class">点我试试</view> 2.text文本标签 只能嵌套text 长按文字可以复制(只有该标签有这个功能) 可以对空格 回车 进行编码 长按文字复制 selecttable 对文本内容进行解码 decode 3. 阅读全文
posted @ 2021-12-06 11:56 冰冰点灯 阅读(40) 评论(0) 推荐(0) 编辑
摘要: 1.事件绑定 bindinput 双向绑定 需要给input标签绑定 input事件 绑定关键字 bindinput 输入框的值 通过事件源对象来获取 e.detail.value 把输入框的值 赋值到data当中 : this.setData({ e.detail.value }) ; bindt 阅读全文
posted @ 2021-12-01 10:19 冰冰点灯 阅读(45) 评论(0) 推荐(0) 编辑
摘要: MINA (原生框架) 1.列表循环 vx:for={{数组或者对象}} wx:for-item="循环项的名称" wx:for-index ="循环项的索引" 。 wx:key 绑定一个普通的字符串的时候, 那么这个字符串名称 肯定是 循环数组 中的 对象的 唯一属性。 wx:key = "*th 阅读全文
posted @ 2021-12-01 10:13 冰冰点灯 阅读(85) 评论(0) 推荐(0) 编辑
摘要: 1.导航元素 标签式的导航菜单 给一个无序列表添加 class="nav nav-tabs" 给任意一个 li 添加 class="active"(表示选中这个导航) <body> <div class="container"> <p>标签式的导航菜单</p> <ul class="nav nav- 阅读全文
posted @ 2021-11-29 13:59 冰冰点灯 阅读(42) 评论(0) 推荐(0) 编辑
摘要: 1.标题 Bootstrap 和普通的 HTML 页面一样,定义标题都是使用标签 <h1> ~ <h6> ,只不过 Bootstrap 覆盖了其默认的样式,使用其在所有浏览器下显示的效果一样, 为了让非标题元素和标题使用相同的样式,还特意定义了 .h1 ~ .h6 六个类名。同时后面可以紧跟着一行小 阅读全文
posted @ 2021-11-29 13:53 冰冰点灯 阅读(1302) 评论(0) 推荐(0) 编辑
摘要: <!--使用X-UA-Compatible来设置IE浏览器兼容模式 最新的渲染模式- -> <meta http-equiv="X-UA-Compatib1e" content= "IE=edge"> <!-- viewport表示用户是否可以缩放页面; width指定视区的逻辑宽度; device 阅读全文
posted @ 2021-11-29 13:47 冰冰点灯 阅读(267) 评论(0) 推荐(0) 编辑
摘要: 一、快速使用 layui.use("tabel",function{ var tabel= layui.tabel; tabel.render({ elem:"#demo", // <tabel id="demo"></table> url:'js/user.json',//数据接口 height: 阅读全文
posted @ 2021-11-22 12:01 冰冰点灯 阅读(681) 评论(0) 推荐(0) 编辑