自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(19)
  • 收藏
  • 关注

转载 [gulp]Cannot find module 'orchestrator'

从github 将项目 clone到本地后,运行gulp 启动项目时,出现这个问题的原因是:1.clone 项目连同 nodemodules目录也一起下载到本地。解决方式:1.从本地删除nodeModule文件夹2.在项目目录下 运行npm cache cleannpm install3.执行完毕以上两个命令之后,再执行gulp启动项目。转载于:h...

2017-08-26 13:16:00 175

转载 [Git]Please make sure you have the correct access rights and the repository exists

这个问题是这样,需要在已有github账号的A机器上,再创建一个github账号,新账号创建完毕,将代码通过机器A push上之后,再另一台机器B,clone 这个项目时报出了如下错误:Permission denied (publickey).fatal: Could not read from remote repository.解决方式是:在clone代码的时候要使用h...

2017-08-26 12:50:00 92

转载 no bundle URL present in react-native?

Assuming that you are usingnvmand multiple versions of node installed, here is the solution:Say that you runnpm install -g react-native-cliinv6.9.5.Now makev6.9.5as default by run...

2017-08-03 22:59:00 136

转载 React-native SyntaxError: Unexpected token ...

更新 node.js 版本到 v6.11.1.https://github.com/facebook/react-native/issues/15040转载于:https://www.cnblogs.com/mrdooo/p/7282101.html

2017-08-03 21:57:00 459

转载 [webpack]如何使用babel

待..转载于:https://www.cnblogs.com/mrdooo/p/6683274.html

2017-04-08 22:17:00 108

转载 一起看看 scrollHeight,clientHeight,offsetHeight,scrollTop是个啥

scrollHeight最终数值的组成:var scrollHeight = currentElementContent.height +currentElement.paddingTop+currentElement.paddingBottom官方的解释是:scrollHeight的高度等于当内容完全适配浏览器viewpoint后的高度,这个高度包括padding...

2017-03-28 17:19:00 93

转载 document.body 与 document.documentElement区别介绍

什么是document.body?返回html dom中的body节点 即<body>什么是document.documentElement?返回html dom中的root 节点 即<html>document.documentElement 与 document.body的应用场景获取 scroll...

2017-03-28 12:38:00 282

转载 如何同步iframe与嵌入内容的高度

最近频繁的做一些通过iframe在a页面嵌入b页面需求。总结下来,有以下问题需要解决1.如何同步iframe与嵌入内容的高度2.将b页面载入到a页面后,如何隐藏掉b页面上的元素,如左导航,顶部导航等等-如何同步iframe与嵌入内容的高度a)获取由iframe引入的页面高度contentWindow返回的是嵌入到中页面的window对象。可以通过这个window...

2017-03-27 20:34:00 95

转载 [angular1.6]Error: "transition superseded" ui-router 在angular1.6 报错误问题解决

在angular1.6版本里,使用ui-router如果报这个错误,可以将ui-router升级到最近版本即可。ui-router version v0.4.2转载于:https://www.cnblogs.com/mrdooo/p/6510240.html

2017-03-06 15:36:00 237

转载 [angular2]解决安装 angular-cli 报错:Cannot find module 'github-url-from-git'

1.运行:sudo rm -rf /usr/local/lib/node_modules/npm2.重新安装最新版本的node,最新版本的node已经集成了npm,所以无需另外安装。3.运行:sudo npm install -g cnpm 安装cnpm4.在项目目录下运行:sudo cnpm i angular-cli 安装angular-cli5.运行:ng...

2017-03-05 16:26:00 152

转载 [nodejs]在mac环境下如何将node更新至最新?

在mac下安装angular-cli时,报出较多错误。初步怀疑是因为node环境版本过低导致。在mac下,需要执行如下几步将node更新至最新版本,也可以更新到指定版本1. sudo npm cache clean -f (清除npm缓存)2. sudo npm install -g n 3. sudo n stable (更新到最新版本,如果想更...

2017-03-05 12:42:00 76

转载 [angular 1.x] angular.module(moduleName) 与 var app = angular.module() 的差异

待转载于:https://www.cnblogs.com/mrdooo/p/6400251.html

2017-02-15 10:07:00 278

转载 [angular 1.x] 使用select 实现下拉列表 ng-options 与 ng-repeat的取舍

待...转载于:https://www.cnblogs.com/mrdooo/p/6400191.html

2017-02-15 09:56:00 122

转载 [如何在mac下使用gulp] 2. gulp模块的常用方法

常用的gulp模块方法有:gulp.src()gulp.src('client/one.js'); //指定明确的要处理文件gulp.src('client/*.js'); //处理client目录下所有后缀为.js的文件gulp.src('client/**/*.js'); //处理client目录及其子目录所有为.js的文件gulp.src('!...

2017-02-02 21:47:00 96

转载 [如何在Mac下使用gulp] 1.创建项目及安装gulp

1.创建项目2.安装gulp3.创建gulpfile.js文件4.运行gulp创建项目-创建项目文件夹命名为firstGulp,并在firstGulp目录下运行 npm init 。npm init 会创建packjson文件,用于保存与项目有关的文件信息。创建步骤直接按回车跳过就好。绿色部分需要我们根据项目自身情况手动输入 ,也可设置为空。...

2017-02-02 14:55:00 189

转载 Mac 执行 gulp 报错 -bash: gulp: command not found

在mac系统下安装gulp,之后执行gulp 报如下错误:-bash: gulp: command not found回溯安装过程发现问题如下1.执行 npm root:Applications/XAMPP/xamppfiles/htdocs/gulp/node_modules以上路径说明npm只安装到了本地目录,需要执行如下命令更改npm目录:npm co...

2017-02-02 13:19:00 249

转载 css 字体单位之间的区分以及字体响应式实现

问题场景:在实现响应式布局的过程中,如何设置字体大小在不同的视窗尺寸以及不同的移动设备的可读性?需要了解的有:1.px,em,pt之间的换算关系1em = 16px1px = 1/16 em = 0.0625em////以下用的比较少//////1em = 12pt1px = 3/4 pt = 0.75pt1pt = 1/12 em 0.0...

2016-04-10 19:56:00 199

转载 事件冒泡、事件捕获、事件委托初探

场景:1 1 <div class="div1"> 2 click me div1 3 <div class="div2">click me div2</div> 4 </div> 5 6 $(".div2").on('click',function(){ 7 alert($(t...

2016-04-10 15:07:00 76

转载 $(document).ready(function(){}) 与 window.onload = function(){} 区别

$(document).ready(fucntion(){//在页面dom结构加载完毕后执行代码,})window.onload = function(){//页面所有内容加载完毕后,执行代码。 所有内容包括页面中的图片,dom结构等等}总结:在执行效率上,$(document).ready() 优于 window.onload,原因是 前者在do...

2016-04-10 14:52:00 165

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除