Skip to content

Commit

Permalink
test居中
Browse files Browse the repository at this point in the history
  • Loading branch information
aa1479474496 committed Jan 31, 2018
1 parent 84a0f74 commit ad8befb
Show file tree
Hide file tree
Showing 3 changed files with 136 additions and 11 deletions.
Binary file added authentication_title.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
75 changes: 75 additions & 0 deletions index.1.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
<!DOCTYPE html>
<html>

<head>
<meta charset="utf-8">
<title>mynodeproject</title>
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">

<style>
* {
margin: 0;
padding: 0;
}

ul,
ol,
li {
list-style: none;
}

ul {
overflow: hidden;
}

li {
float: left;
}

li::before {
content: '\20';
height: 12px;
border-right: 1px solid #d9d9d9;
width: 0;
display: inline-block;
vertical-align: middle;
}

span {
font-size: 16px;
color: #333;
line-height: 36px;
margin-left: -1px;
padding: 0 25px;
text-decoration: none;
font-weight: 700;
display: inline-block;
vertical-align: middle;
}

.icon {
display: inline-block;
vertical-align: middle;
width: 26px;
height: 26px;
background: url(./authentication_title.png) no-repeat center;
}
</style>
</head>

<body>
<ul>
<li>
<span>首页</span>
<i class="icon"></i>
</li>
<li>
<span>量贩装</span>
</li>
<li>
<span>生鲜区</span>
</li>
</ul>
</body>

</html>
72 changes: 61 additions & 11 deletions test.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
// var a = 7 && 0;
// var b = 0 && 7;
// var c = 7 && 1;
var a = 7 && 0;
var b = 0 && 7;
var c = 7 && 1;

// console.log(a ,b ,c);
console.log(a ,b ,c);


// function test(a) {
// console.log(a);
// function a() {}
// var a = 5;
// console.log(a);
// }
// test(8);
function test(a) {
console.log(a);
function a() {}
var a = 5;
console.log(a);
}
test(8);


// let arr = [4,5,6,7,8]
Expand Down Expand Up @@ -235,3 +235,53 @@
// }


// var plugin =(function(){
// function _firstFunc(str){
// console.log(str);
// };
// return{
// firstFunc: _firstFunc,
// };
// })();

// plugin.firstFunc(123)

// (function(){
// //定义一些默认参数
// var _options={
// default_word:"default hello"
// }

// //定义一些api
// var _plugin_api = {
// firstFunc:function(str = _options.default_word){
// console.log(str);
// return this;//返回当前方法
// },
// secondFunc:function(){
// console.log("secondFunc");
// return this;//返回当前方法
// }
// }
// //这里确定了插件的名称
// console.log(this);
// this.CJPlugin = _plugin_api;
// })();

// CJPlugin.firstFunc("hello");//hello
// CJPlugin.firstFunc();//default hello
// CJPlugin.secondFunc();//secondFunc


// var name = 'john';
// var name;
// console.log(name);


console.log(name);
function name() {
return 1
}
var name = 2


0 comments on commit ad8befb

Please sign in to comment.