Liunx 命令

1.  Linux   查找文件的命令   find   /usr/local/   -name 文件的名字        在 usr/local  目录下面查找文件。。。。。。

2.  如何查看自己的 linux 是 32 位还是 64 位 可以用命令“getconf LONG_BIT”查看, 如果返回的结果是 32 则说明是 32 位,返回的结果是 64 则说明是 64 位。 此外还可以使用命令“uname -a”查看, 输出的结果中,如果有 x86_64 就是 64 位的,没有就是 32 位的。

3.....

使用   formidable   实现文件的上传

var form = new formidable.IncomingForm();

form.parse(req, function(err, fields, files) {       console.log(fields);     });

输出的 fields  是    {file_id: '0'} {file_id: '3'} {file_id: '4'} {file_id: '1'} {file_id: '2'} http://www.cnblogs.com/ajun/p/4171384.html node.js 操作 excel 首先安装依赖库 node-xlsx npm install node-xlsx 在操作文件中直接引用 var xlsx = require("node-xlsx"); 读取 excelvar list = xlsx.parse("./excel/" + excelName); // 读出后是数组,包含每个 sheet,,,,,数组里面包含对象。。。。

[

    {name: 'sheet1',data: [ [Object], [Object], [Object], [Object], [Object] ] },     {name: 'sheet2', data: [ [Object] ] }

] name=sheet 名称         data= 每个 sheet 的数据,      剩下的就灵活操作咯......

 

 

4.   安装   mongodb   小白的错误   命名可以找到 mongpd  的  就是安装不成功   原因是  我的服务器是 32  为系统的,我装的 mongodb  是 64  位的。浪费了我好长的时间真是浪费。。。。看来是基础不牢真的是很扯淡的呀  。。。。

5..................................bootstrap  的字体图标   

在 bootstrap.css 样式中   

@font-face {   font-family: 'Glyphicons Halflings';   src: url('../fonts/glyphicons-halflings-regular.eot');   src: url('../fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/glyphicons-halflings-regular.woff') format('woff'), url('../fonts/glyphicons-halflings-regular.ttf') format('truetype'), url('../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg'); } .glyphicon {   position: relative;   top: 1px;   display: inline-block;   font-family: 'Glyphicons Halflings';   -webkit-font-smoothing: antialiased;   font-style: normal;   font-weight: normal;   line-height: 1;   -moz-osx-font-smoothing: grayscale; }

所以 font-face 规则实际上是在找到 glyphicons 地方声明 font-family 和位置。

src: url('../fonts/glyphicons-halflings-regular.eot'); src: url('../fonts/glyphicons-halflings-regular.eot?#iefix') format
src 指明了 字体图标的的相对路径 其中字体图标位置 bootstrap 解压文件后的 fonts 文件夹 里面。。。。如果有些样式没有找到,,,,,是因为咩有引入字体图标的 fonts.....

6.............var    f1=function(page=0;count=1){

  console.log(page)

}

f1(5)

输出 5          定义的 f1 里面的 page=0   是初始值。。。。如果不传 page  =0  传了 page=5   就会覆盖初始值