自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(102)
  • 资源 (2)
  • 收藏
  • 关注

转载 cmd命令三步配置JDK环境变量

单击“开始”,输入cmd。当cmd.exe图标出现,点击右键,选择以管理员身份运行。 输入cmd命令。 setx JAVA_HOME "C:\Program Files\Java\jdk1.8.0" 引号中换成自己的路径 setx Path "%PATH%;%JAVA_HOME%\bin"; 不用变照搬就好 关闭窗口 到环境变量中看看吧,或者再次打开cm...

2019-01-07 10:14:27 580

转载 chain async actions in redux-thunk & redux-promise

// If you use Redux Thunk...import { createStore, applyMiddleware } from 'redux'import thunk from 'redux-thunk'const store = createStore(reducer, applyMiddleware(thunk))// You can define asynchr...

2018-11-21 11:12:57 213

转载 How Browsers Work: Behind the scenes of modern web browsers

https://www.html5rocks.com/en/tutorials/internals/howbrowserswork/How Browsers Work: Behind the scenes of modern web browsersPrefaceThis comprehensive primer on the internal operations of WebKit...

2018-08-08 10:43:34 348

转载 服务器返回的14种常见HTTP状态码

服务器返回的14种常见HTTP状态码当我们从客户端向服务器发送请求时 服务器向我们返回状态码 状态码就是告诉我们服务器响应的状态 通过它,我们就可以知道当前请求是成功了还是出现了什么问题 状态码是由3位数字和原因短语组成的(比如最常见的:200 OK) 其中第一位数字表示响应类别,响应类别从1到5分为五种 add:其实我查阅资料发现还有一个6打头的一个 600 Unparseabl...

2018-08-07 13:52:14 3511

转载 Web端导出CSV

前端导出文件大部分还是通过服务器端的方式生成文件,然后传递到客户端。但很多情况下当我们导出CSV时并不需要后端参与,甚至没有后端。    做过WebGIS的同学经常会碰到这种场景,用户的兴趣点数据以csv文件形式上传到web应用中以表格形式展示,并可以编辑属性信息,编辑完成后需要将数据下载到本地。特别是对一些敏感数据,用户不希望传递到应用服务器端,整个过程完全在客户端进行。  上传过程

2017-07-07 09:08:28 436

转载 How Redux works

IntroductionRedux is a recent Javascript library (started in May 2015) which is described as “predictable state container for JavaScript apps”. It takes the idea from Flux architecture and simplifie

2017-04-21 16:44:40 544

转载 React + Rx: GitHub - belfz/fully-reactive-react-example

https://github.com/belfz/fully-reactive-react-example

2017-04-13 11:15:08 656

转载 react官方模板

https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/config/webpack.config.prod.js

2017-04-12 13:41:43 2048

转载 A Better File Structure For React/Redux Applications

Most of the examples I could find about React/Redux applications (either client side or universal) are very simple. They choose to organize files by nature (action, component, container, reducer). T

2017-04-12 11:33:13 609

转载 ANGULARJS DIRECTIVE FOR SHOWING CONTENT IN A NEW WINDOW

http://blog.softnauts.com/2014/03/18/building-angular-directive-that-shows-content-in-new-window/To make our life easier, we decided to write the directive for displaying its content in a new wi

2017-04-08 12:43:52 305

转载 angularjs指令中的compile详解

这篇文章主要介绍了angularjs指令中的compile与link函数详解,本文同时诉大家complie,pre-link,post-link的用法与区别等内容,需要的朋友可以参考下 通常大家在使用ng中的指令的时候,用的链接函数最多的是link属性,下面这篇文章将告诉大家complie,pre-link,post-link的用法与区别.angularjs里的指令非常

2017-04-01 15:24:37 632

转载 Hiding menu when clicking outside - AngularJS

Assume you have a menu which looks like the following:div class="right-menu" ng-click="toggleMenu($event);"> img src="img/RightMenuIcon.png" alt="" />div>div ng-show="menuOpened" class="menu-

2017-03-27 17:38:59 345

转载 ANGULARJS DIRECTIVE FOR SHOWING CONTENT IN A NEW WINDOW

http://blog-softnauts2.rhcloud.com/2014/03/18/building-angular-directive-that-shows-content-in-new-window/To make our life easier, we decided to write the directive for displaying its content in

2017-03-16 13:30:29 278

转载 为不同的环境的配置设置的WebPack

#645为不同的环境的配置设置的WebPack 金太勋 @纪州场景#例如,如果要在多个捆绑环境如下:如果你需要代码组件,仅捆绑(默认)。让独立。如果需要封装,模块依赖组件来源捆绑在一起。让包装WebPACK中的环境通过分离配置文件,并让它相契合的WebPack运行环境合并的WebPack合并安装#的WebPack合并$ cd path

2017-03-13 11:23:18 3849

原创 javascript download excel file from JSON data

export default function JSONToCSVConvertor(JSONData, ReportTitle, ShowLabel) {  //If JSONData is not an object then JSON.parse will parse the JSON string in an Object  var arrData = typeof JSONDat

2017-03-09 12:52:42 1257

转载 JavaScript Stack from Scratch

https://github.com/verekia/js-stack-from-scratchThis is a straight-to-the-point guide to assembling a JavaScript stack. It requires some general programming knowledge, and JavaScript basics.

2017-03-09 09:40:26 379

原创 隐藏scrollbar的CSS

.out{  width: 200px;  height: 150px;  border: 2px solid red;  overflow: hidden;}.in{  border: 2px solid blue;  overflow: auto;  width: 100%;  height: 100%;  padding-right: 20

2017-03-07 09:36:14 453

转载 Backbone入门指南(七):Router和History (路由控制器)

http://yujianshenbing.iteye.com/blog/174983110. Router和History (路由控制)  Backbone.Router担任了一部分Controller(控制器)的工作,它一般运行在单页应用中,能将特定的URL或锚点规则绑定到一个指定的方法(后文中称Action)。  当我们开发一个单页应用时,常常会遇到这样两个问

2017-01-12 09:49:17 345

转载 Backbone入门指南(六):View (视图)

http://yujianshenbing.iteye.com/blog/17488309. View (视图控制器)  我们在前面的章节中介绍了Model和Collection,它们都是用于数据管理和交互,在本章我们讨论如何使用视图(View)将这些数据渲染到界面,以及如何管理界面事件和逻辑。  Backbone中的视图提供了一组处理DOM事件、和渲染模型(或集合

2017-01-12 09:48:33 353

转载 Backbone入门指南(五):Collection (数据模型集合)

http://yujianshenbing.iteye.com/blog/17488268. Collection (数据模型集合)  如果将一个Model对象比喻成数据库中的一条记录,那么Collection就是一张数据表。它表示为一个模型集合类,用于存储和管理一系列相同类型的模型对象。8.1 创建集合  集合用于组织和管理多个模型,但它并不是必须的,如果你的

2017-01-12 09:47:47 368

转载 Backbone入门指南(四):Model(数据模型)

http://yujianshenbing.iteye.com/blog/17485717. Model (数据模型)  Model是Backbone中所有数据模型的基类,用于封装原始数据,并提供对数据进行操作的方法,我们一般通过继承的方式来扩展和使用它。  如果你做过数据库开发,可能对ORM(对象关系映射)不会陌生,而Backbone中的Model就像是映射出来的一个

2017-01-12 09:47:06 1338

转载 Backbone入门指南(三):Events(事件管理)

http://yujianshenbing.iteye.com/blog/17485676. Events (事件管理)  从这一章开始,我将正式介绍Backbone的内容,过程中会有许多例子和代码,你应该将这些代码复制到你的页面,并查看它们的运行效果。  我介绍的第一个模块是Backbone.Events(事件管理),因为我在介绍任何其它的模块时都会提到它,你可以

2017-01-12 09:45:37 289

转载 Backbone入门指南(二):依赖库Underscore

http://yujianshenbing.iteye.com/blog/17484525. Underscore.js  Underscore封装了常用的JavaScript对象操作方法,用于提高开发效率。它本身与我们介绍的主题“Backbone”没有半毛钱的关系,因此你可以完全不理会“Backbone”的概念来学习它,或将它单独运用到任何一个页面。(另外,Underscor

2017-01-12 09:41:56 224

转载 Backbone入门指南(一):什么是Backbone?

1. 前言  本文的目的,是帮助大家快速理解掌握Backbone的使用,但它并不是API,因此我不会将每一个方法都详细地描述,但是我会告诉你如何学习它们。  这是一篇稍稍较长的技术文章,因为我想将我所了解的东西尽可能详细地分享给大家。但它还不至于出版为一本书籍,因为Backbone其实非常简单。当然,这并不表示Backbone提供的功能有限,相反,它能用简单的实现构建出复杂的应用,

2017-01-12 09:39:55 437

转载 Webpack - 从初学者到大师

https://webpack-book.mrshi.me/chapter3-5.html

2016-12-14 15:15:58 371

转载 Pure CSS for multiline truncation with ellipsis

Pure CSS for multiline truncation with ellipsis Natalia Onischuk in Code & Front End*Update – We just launched The Side Project Accelerator, an 8-week online program to share

2016-12-06 16:07:16 333

转载 你知道用AngularJs怎么定义指令吗?

014-11-04 10:20前言最近学习了下angularjs指令的相关知识,也参考了前人的一些文章,在此总结下。欢迎批评指出错误的地方。 Angularjs指令定义的APIAngularJs的指令定义大致如下angular.module("app",[]).directive("directiveName",function(){

2016-09-20 23:01:28 223

转载 windows删除node_modules[文件名或扩展名太长,目录层次超过无法删除的问题]

问题这几天遇到一个小问题,windows下无法直接删除node_modules这个目录【快捷键:ctrl+shift+del】,因为node_modules内部嵌套的子目录太多;直接删除会报错:【文件名或扩展名太长无法删除,要么就是目录层次超过】在网上搜索了好多办法都没法删除,WINPE那种应该可以,不过没尝试,嫌浪费时间【要制作启动盘】; 本地已经测试的: - 3

2016-09-03 20:40:37 624

转载 Redux without profanity

Welcome to a summary of how we write redux apps at Docker, Inc. aimed to be used as a guide for our projects and the Redux community. We hopped on the Redux train early at Docker. Along the way we've

2016-09-03 09:35:24 1117

转载 Getting Started with Redux: An Intro

As web applications grow in complexity, so does the task of updating and displaying their underlying data. Many approaches to managing this data result in a complex web of views. These views may be li

2016-09-03 09:20:36 388

转载 warriorjs

https://github.com/olistic/warriorjsThis is a game designed to teach JavaScript and artificial intelligence in a fun, interactive way.You play as a warrior climbing a tall tower to  at the t

2016-09-03 09:17:30 727

转载 Mobile JavaScript Apps: The Dawn of React Native

My friend Daniel has been a web developer throughout his career. In the last four years, Daniel like many of his peers was primarily a mobile web developer.Daniel made sure that everything he deve

2016-09-03 09:14:04 570

转载 Setting up a new Typescript 1.9 and React project

Posted on Jun 21, 2016#typescript #react #babel #webpackIntroductionEditor setupAtomSublimeVisual Studio CodeRecommendationLintingBasic project setupNote for VS Code usersSetting u

2016-09-03 09:12:02 760

转载 A STEP-BY-STEP TDD APPROACH ON TESTING REACT COMPONENTS USING ENZYME

That's a mouthful title, but it's the best I could do. Coffee's not in my system yet and the guy at the coffeeshop knows no other method than waiting for the effect. And in programming, waiting is dea

2016-09-03 09:09:43 591

转载 React.js in patterns

Long time I was searching for a good front-end framework. Framework that will help me write scalable and easy to maintain UI. Even though React is just a library for rendering it comes with so many be

2016-09-03 09:06:13 852

转载 Design Principles

After using React in a couple of applications, you might be interested in contributing to React. Before diving into specifics, we think it's important to establish a few design principles guiding ou

2016-09-03 09:04:41 463

转载 Create Apps with No Configuration

Create React App is a new officially supported way to create single-page React applications. It offers a modern build setup with no configuration.Getting StartedInstallationFirst, instal

2016-09-03 09:00:51 431

转载 How to Write a Git Commit Message

31 Aug 2014 | revision historyIntroduction | The Seven Rules | TipsIntroduction: Why good commit messages matterIf you browse the log of any random git repo

2016-09-03 08:52:32 1244

转载 深入理解Redux:10个来自专家的Redux实践建议

2016-09-02 某熊的全栈之路 前端早读课前言周五啦,昨天的书你抢到了吗?没抢到的不要紧,最后剩下50本签名版等你来,可通过阅读原文购买。ps:今天的分享有点长,由@某熊的全栈之路带来的翻译分享。正文从这开始~记得我才开始使用React的时候,还没有Redux呢,那时候只有Flux 架构的理论概念和一堆各种各样的实现。

2016-09-03 08:46:30 4643

转载 Javascript学习系列(六):javascript控制Cookie,保留用户登录信息

想要下一次进入自己的网站时保留用户信息以便简化登录手续,所以研究了Cookie。 Cookie是储存在用户本地上的数据,可以将用户的信息长久的保存到用户机的文件中。 请看这个登录的例子(如果有不懂的,请看javascript cookie详解)登陆页login.html[html] view plain cop

2016-07-10 23:53:54 286

Introduction to Probability Models (Sheldon M.Ross , 9th Edition)

国外随机过程的经典教程,从入门到深入,讲解透彻明晰

2008-10-06

effective c++

effective c++,英文第三版

2008-07-23

空空如也

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

TA关注的人

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