摘要: JS 字符串有replace() 方法。但这个方法只会对匹配到的第一个字串替换。例: var str = "wordwordwordword"; var strNew = str.replace("word","Excel"); 如果要全部替换的话,JS 没有提供replaceAll这样的方法。使用 阅读全文
posted @ 2018-06-08 14:49 crossover丶 阅读(208) 评论(0) 推荐(0)
摘要: <a href="tel:13800138000"></a> 阅读全文
posted @ 2018-06-04 15:33 crossover丶 阅读(293) 评论(0) 推荐(0)
摘要: 获取React.js自定义属性必须data- ,比如data-index 然后用event.target.getAttribute("data-index") 或者console.log(this.refs.myInput.getAttribute("data-index"));获取 例: <inp 阅读全文
posted @ 2018-06-04 14:35 crossover丶 阅读(8241) 评论(0) 推荐(0)
摘要: 安装脚手架步骤 按这个步骤走下去: npm install -g create-react-app create-react-app my-app npm install -g create-react-app create-react-app my-app 使用命令创建应用,myapp为项目名称 阅读全文
posted @ 2018-05-30 16:28 crossover丶 阅读(930) 评论(0) 推荐(0)
摘要: 是因为移动端-webkit-user-select:none 导致input/texttarea输入框无法输入, 增加-webkit-user-select: auto; 阅读全文
posted @ 2018-03-16 16:03 crossover丶 阅读(2995) 评论(0) 推荐(0)
摘要: 在行内加上 onfocus="this.blur()" 。 阅读全文
posted @ 2018-03-16 15:58 crossover丶 阅读(617) 评论(0) 推荐(0)
摘要: $(obj).bind('input propertychange', function) { console.log($(this).val()); } 阅读全文
posted @ 2017-10-27 18:16 crossover丶 阅读(2520) 评论(0) 推荐(0)
摘要: 下载插件文件:https://github.com/vuejs/vue-syntax-highlight 直接在官网下载放在安装时候的packages目录下(sublime text3\Sublime Text3\Data\Packages) 在Packages文件夹下新建一个vue的文件,把第一步 阅读全文
posted @ 2017-05-19 10:49 crossover丶 阅读(550) 评论(0) 推荐(0)
摘要: 1、配置git环境 请从Git官网下载最新版的Git客户端。(注,请自备纵云梯) 安装完客户端后,需要完成以下的配置: 配置用户名 确认你在CSDN id,获取的方式是在登录后,进入passport.csdn.NET,在“个人帐号”的最下端查看用户名: 然后在命令行中输入: 配置邮箱 配置的Git邮 阅读全文
posted @ 2017-05-18 17:16 crossover丶 阅读(10880) 评论(0) 推荐(0)
摘要: jQuery(window).height()代表了当前可见区域的大小,而jQuery(document).height()则代表了整个文档的高度,可视具体情况使用. 注意当浏览器窗口大小改变时(如最大化或拉大窗口后) jQuery(window).height() 随之改变,但是jQuery(do 阅读全文
posted @ 2017-05-15 11:37 crossover丶 阅读(1840) 评论(0) 推荐(0)