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   就会覆盖初始值

 

posted @ 2017-06-29 22:59  雪落无痕1  阅读(206)  评论(0编辑  收藏  举报