会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Cynthia娆墨旧染
Don’t Repeat Yourself.
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
6
7
8
9
10
11
12
13
14
15
下一页
2016年3月10日
link-hover-visited-active
摘要: :link { color: blue; } :visited { color: purple; } :hover { color: red; } :active { color: orange; }:link:hover { color: red; } :visited:hover { color
阅读全文
posted @ 2016-03-10 10:09 Cynthia娆墨旧染
阅读(167)
评论(0)
推荐(0)
2016年3月9日
前端常见面试题
摘要: 一.JS (1) 在函数中赋值,多次赋值,出现问题 (2)数组的length 赋值给变量后,无法判断数组长度 (3) 截取字符 (4) 统计一个字符里出现最多的字母和出现次数 (5)判断变量是不是字符 (6)你如何组织自己的代码?是使用模块模式,还是使用经典继承的方法? (7) 你如何优化自己的代码
阅读全文
posted @ 2016-03-09 13:32 Cynthia娆墨旧染
阅读(1611)
评论(3)
推荐(0)
css实现div内一段文本的两端对齐
摘要: 在一个固定宽度的div内,使得P标签内的文本两端对齐: text-align: justify;text-justify:inter-ideograph; <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>ju
阅读全文
posted @ 2016-03-09 10:48 Cynthia娆墨旧染
阅读(2725)
评论(0)
推荐(0)
2016年3月8日
css单位
摘要: 0. px : 绝对单位,页面按精确像素展示 1. em :相对于父级的倍数 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Unit</title> </head> <style> body{ font-s
阅读全文
posted @ 2016-03-08 13:38 Cynthia娆墨旧染
阅读(186)
评论(0)
推荐(0)
2016年2月29日
express入门
摘要: (1)express的安装 $ npm install express 或者 $ npm install -g express 或者 $ npm install express -gd 备注: -g : 代表安装到 NODE_PATH 里面的 lid 里面,没有 -g 的话,npm install
阅读全文
posted @ 2016-02-29 16:16 Cynthia娆墨旧染
阅读(362)
评论(0)
推荐(0)
mac node版本管理
摘要: (0)简说 目前有n和nvm这两个工具可以对Node进行升级,以下简单介绍一下二者的使用。 (1)n 安装很简单: $ sudo npm install -g n 另一种获取源码的方法安装: $ git clone https://github.com/visionmedia/n.git $ cd
阅读全文
posted @ 2016-02-29 10:16 Cynthia娆墨旧染
阅读(5190)
评论(0)
推荐(0)
2016年2月25日
angularJs - cynthia娆墨旧染-响应式文章发布系统
摘要: (0)功能 a.添加新文章 b.修改已发布文章 c.搜索已经发布的文章 d.demo链接: http://cynthiawupore.github.io/angularJS (1)界面 a.文章列表页 b.文章详细页 c.文章添加页 d.文章修改页 (2)html源码 <!DOCTYPE html>
阅读全文
posted @ 2016-02-25 16:36 Cynthia娆墨旧染
阅读(528)
评论(0)
推荐(0)
2016年2月24日
angularJs学习笔记-路由
摘要: 1.angular路由介绍 angular路由功能是一个纯前端的解决方案,与我们熟悉的后台路由不太一样。 后台路由,通过不同的 url 会路由到不同的控制器 (controller) 上,再渲染(render)到 html。 angular前端路由,需要提前对指定的 ng-app 定义路由规则 (r
阅读全文
posted @ 2016-02-24 15:54 Cynthia娆墨旧染
阅读(286)
评论(0)
推荐(0)
2016年2月23日
angularJs学习笔记-入门
摘要: 1.angularJs简介 angularJs是一个MV*的javascript框架(Model-View-Whatever,不管是MVVM还是MVC,统归MDV(model drive view)),其实是由google推出的SPA(single-page-application)应用框架。它的用
阅读全文
posted @ 2016-02-23 14:19 Cynthia娆墨旧染
阅读(567)
评论(0)
推荐(0)
react-conponent-todo
摘要: <!DOCTYPE html> <html> <head> <script src="../../build/react.js"></script> <script src="../../build/react-dom.js"></script> <script src="../../build/b
阅读全文
posted @ 2016-02-23 12:07 Cynthia娆墨旧染
阅读(302)
评论(0)
推荐(0)
react-conponent-secondesElapsed
摘要: <!DOCTYPE html> <html> <head> <script src="../../build/react.js"></script> <script src="../../build/react-dom.js"></script> <script src="../../build/b
阅读全文
posted @ 2016-02-23 12:06 Cynthia娆墨旧染
阅读(331)
评论(0)
推荐(0)
react-conponent-hellocynthia
摘要: <!DOCTYPE html> <html> <head> <script src="../../build/react.js"></script> <script src="../../build/react-dom.js"></script> <script src="../../build/b
阅读全文
posted @ 2016-02-23 12:05 Cynthia娆墨旧染
阅读(228)
评论(0)
推荐(0)
2016年2月22日
react学习笔记2
摘要: 1.build文件介绍 (1)react.js 是react的核心库 (2)react-dom.js 提供与DOM相关功能 (3)browser.js 是将JSX语法转为javascript语法 2.组件的继续学习 注意:组件的第一个字母必须大写,否则会报错。组件的用法和html标签完全一致,可以任
阅读全文
posted @ 2016-02-22 17:10 Cynthia娆墨旧染
阅读(284)
评论(0)
推荐(0)
react学习笔记1
摘要: 1.reactJs简介 react起源于faceboo的内部项目,因为该公司对市场所有的javascript mvc框架都不满意,于是决定自己写一条,用来架设Instagram的网站。做出来以后,发现这套东西和好用,就在2013年5月开源了。由于其代码逻辑非常简单,性能出众,所以用的人越来越多,认为
阅读全文
posted @ 2016-02-22 13:46 Cynthia娆墨旧染
阅读(433)
评论(0)
推荐(0)
2016年2月19日
1970年// iPhone “变砖”后可继续正常使用的解决方案
摘要: 0.解决方案 说话先说重点,“变砖”后的iphone怎么正常使用。 拆开后盖,给电源和处理器之间断下电就OK了。 1.事件来源 对于iPhone和iPad,把时间手动设置到1970年5月以前会出现“变砖”,重启后无法正常使用 2、最懒的解释 很多编程语言起源于UNIX系统,而UNIX系统认为1970
阅读全文
posted @ 2016-02-19 11:09 Cynthia娆墨旧染
阅读(471)
评论(0)
推荐(0)
2016年2月18日
23种设计模式
摘要: 1.策略模式 [strategy pattern] 2.代理模式 [proxy pattern] 3.单例模式 [singleton pattern] 4.多例模式 [multition pattern] 5.工厂方法模式 [factory method pattern] 6.抽象工厂模式 [abs
阅读全文
posted @ 2016-02-18 15:10 Cynthia娆墨旧染
阅读(137)
评论(0)
推荐(0)
《活着》(作者:余华) 读后感
摘要: 作者下乡去收录民谣在田野里遇到一个老汉正在和牛老说好多名字,觉得好奇,就问老汉为什么一头牛有那么多名字。于是通过老汉的视角,第一人称回忆老汉的一生。 老汉叫富贵,年轻的时候是一纨绔子弟,娶得是米行老板的千金家珍,他们家到他这一代是第三代。到他这一代在他手里把家产通过赌博全部输给了龙二。他爹,他娘,他
阅读全文
posted @ 2016-02-18 13:50 Cynthia娆墨旧染
阅读(908)
评论(4)
推荐(0)
markdown 语法指南
摘要: 说明:左边是markdown的语法 右边是预览。(我这里用了黑色的背景,一般白色较多) 1. 标题 2.列表 3.引用 (1)一层引用 (2)多层引用 4.图片(如果是本地:按照语法写图片路径;如果是网页上,比如简书,可以直接把图片拖进编辑处就可以了) 5.添加文字链接 6.使文字粗体显示 (1)两
阅读全文
posted @ 2016-02-18 12:07 Cynthia娆墨旧染
阅读(709)
评论(0)
推荐(0)
javascript 里面 with 关键字
摘要: 1.with的基本概念 with语句的作用是将代码的作用域设置到一个特定的作用域中,目的是为了简化多次编写访问同一对象的工作。基本语法如下: with (expression) statement 下面我们举个例子,来具体说明下: var qs = location.search.substring
阅读全文
posted @ 2016-02-18 10:28 Cynthia娆墨旧染
阅读(778)
评论(0)
推荐(1)
2016年2月17日
小众机械键盘推荐
摘要:
阅读全文
posted @ 2016-02-17 17:44 Cynthia娆墨旧染
阅读(573)
评论(0)
推荐(0)
上一页
1
···
6
7
8
9
10
11
12
13
14
15
下一页
公告