摘要: 安装 在服务器端最容易的安装方式就是通过 npm (node.js 的包管理器),方法如下:$ npm install -g less 命令行用法 安装 Less 后,就可以在命令行上调用 Less 编译器了,如下: $ lessc styles.less 这将输出编译之后的 CSS 代码到 std 阅读全文
posted @ 2016-08-05 15:48 lhy031 阅读(250) 评论(0) 推荐(0) 编辑
摘要: js阻止冒泡行为: if(e.stopPropagation) { //W3C阻止冒泡方法 e.stopPropagation(); } else { e.cancelBubble = true; //IE阻止冒泡方法 } JQuery 提供了两种方式来阻止事件冒泡。 方式一: event.stop 阅读全文
posted @ 2016-08-05 15:47 lhy031 阅读(266) 评论(0) 推荐(0) 编辑
摘要: 用法一:github上下载包:https://github.com/aui/artDialog seajs方法使用 <!doctype html> <html lang="zh"> <head> <meta charset="UTF-8"> <title>test</title> <style> b 阅读全文
posted @ 2016-08-05 15:46 lhy031 阅读(359) 评论(0) 推荐(0) 编辑
摘要: 一、Compass是什么? 简单说,Compass是Sass的工具库(toolkit)。 Sass本身只是一个编译器,Compass在它的基础上,封装了一系列有用的模块和模板,补充Sass的功能。它们之间的关系,有点像Javascript和jQuery、Ruby和Rails、python和Djang 阅读全文
posted @ 2016-08-05 15:45 lhy031 阅读(365) 评论(0) 推荐(0) 编辑
摘要: 兼容ie8 <!--[if IE 8]> <script src="https://cdnjs.cloudflare.com/ajax/libs/es5-shim/4.0.5/es5-shim.min.js"></script> <style> .ng-hide { display: none !i 阅读全文
posted @ 2016-08-05 15:41 lhy031 阅读(985) 评论(0) 推荐(0) 编辑
摘要: JSON: 这个为什么会变成“cc”而不是d.substring(dot+1);的值? 解决: var jsonsub = {}; jsonsub[cc] = e; arrnew.push(jsonsub); parse用于从一个字符串中解析出json对象,如 var str = '{"name": 阅读全文
posted @ 2016-08-05 15:40 lhy031 阅读(206) 评论(0) 推荐(0) 编辑
摘要: html: <table class="table table-hover table-responsive main-list" id="columntable"> <tr> <th class="">教材名称/章名称/节名称/单元名称/知识点名称</th> <th class="text-cen 阅读全文
posted @ 2016-08-05 15:39 lhy031 阅读(1217) 评论(0) 推荐(0) 编辑
摘要: 安装git 添加系统环境变量:计算机 右键 属性 高级系统设置 环境变量 系统环境变量配置 编辑path C:\Program Files (x86)\Git\cmd 1.右键 git bash 2. ssh-keygen -t rsa -C "邮箱地址" 邮箱地址随便 3.然后把生成的id_rsa 阅读全文
posted @ 2016-08-05 15:37 lhy031 阅读(186) 评论(0) 推荐(0) 编辑
摘要: hosts文件地址:C:\Windows\System32\drivers\etc SVN下载地址:<br> VisualSVN:http://www.visualsvn.com/server/download<br><br> TortoiseSVN:http://tortoisesvn.net/d 阅读全文
posted @ 2016-08-05 15:36 lhy031 阅读(218) 评论(0) 推荐(0) 编辑
摘要: 打开..\wamp\bin\apache\apache2.4.9\conf\httpd.conf配置文件, <Directory "c:/wamp/www/"> # # Possible values for the Options directive are "None", "All", # or 阅读全文
posted @ 2016-08-05 15:35 lhy031 阅读(412) 评论(0) 推荐(0) 编辑