风华正茂、时光流逝、真爱时光、努力创建辉煌。
上一页 1 2 3 4 5 6 7 ··· 24 下一页
摘要: DEMO: <input type="file" id="file" multiple="multiple"> <div id="imgDiv"></div> <div id="showDataUrl" style="width:50%; word-wrap:break-word;"></div> 阅读全文
posted @ 2020-09-24 10:51 野马,程序源改造新Bug 阅读(357) 评论(0) 推荐(0) 编辑
摘要: 为什么小程序的bindtap事件在iphone X机型上不管用,没有反应 解决方法 阅读全文
posted @ 2020-09-23 11:07 野马,程序源改造新Bug 阅读(498) 评论(0) 推荐(0) 编辑
摘要: 下面的原因是 把Chrome的英文转中文关闭 阅读全文
posted @ 2020-09-21 11:42 野马,程序源改造新Bug 阅读(86) 评论(0) 推荐(0) 编辑
摘要: <view class="box1" bindtap="toComment">查看回答</view> //...其他内容 <view class="box2 text-bold" id="comment">回答</view> toComment() { var query = wx.createSe 阅读全文
posted @ 2020-09-17 14:25 野马,程序源改造新Bug 阅读(1767) 评论(0) 推荐(0) 编辑
摘要: scroll-view 属性设置: scroll-y="true" 允许Y轴滚动; scroll-into-view="{{ detail }}" 值应为某子元素id(id不能以数字开头)。设置哪个方向可滚动,则在哪个方向滚动到该元素; scroll-with-animation="true" 在设 阅读全文
posted @ 2020-09-17 11:39 野马,程序源改造新Bug 阅读(2174) 评论(0) 推荐(0) 编辑
摘要: 1、问题描述,使用的图片全部都是本地,没有远程请求,具体问题还需要后续确认, "useMultiFrameRuntime": true, // project.config.json 文件下 我在使用的时候,提交到git 上,发现这个修改了,然后 整个小程序的图片无法加载。 阅读全文
posted @ 2020-09-14 13:42 野马,程序源改造新Bug 阅读(1127) 评论(0) 推荐(0) 编辑
摘要: 输入大小写字母、数字、下划线: <input type="text" onkeyup="this.value=this.value.replace(/[^\w_]/g,'');"> 输入小写字母、数字、下划线: <input type="text" onkeyup="this.value=this. 阅读全文
posted @ 2020-09-10 10:25 野马,程序源改造新Bug 阅读(261) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document< 阅读全文
posted @ 2020-09-09 10:57 野马,程序源改造新Bug 阅读(262) 评论(0) 推荐(0) 编辑
摘要: 前端模块化 函数封装 函数一个功能就是实现特定逻辑的一组语句打包,而且JavaScript的作用域就是基于函数的,所以把函数作为模块化的第一步是很自然的事情,在一个文件里面编写几个相关函数就是最开始的模块 示例一: function fn1(){ ... } function fn2(){ ... 阅读全文
posted @ 2020-09-08 17:00 野马,程序源改造新Bug 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 1、查看npm的镜像源 npm config get registry // 默认是:https://registry.npmjs.org/ 2、修改成淘宝的镜像源 npm config set registry https://registry.npm.taobao.org 3、create-re 阅读全文
posted @ 2020-09-07 11:52 野马,程序源改造新Bug 阅读(1429) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 24 下一页