-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5b18037
commit a896322
Showing
4 changed files
with
388 additions
and
361 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,44 @@ | ||
const data={ | ||
userName: "菜菜", | ||
job:"后端开发工程师", | ||
address:"成都", | ||
age:"24岁", | ||
sex:"男", | ||
tel:15984426676, | ||
email:"[email protected]", | ||
skills:[ | ||
{ | ||
name:"JAVA", | ||
per:88 | ||
}, | ||
{ | ||
name:"Golang", | ||
per:88 | ||
}, | ||
{ | ||
name:"Linux", | ||
per:85 | ||
}, | ||
{ | ||
name:"Mysql", | ||
per:83 | ||
}, | ||
{ | ||
name:"Oracle", | ||
per:80 | ||
}, | ||
] | ||
} | ||
console.log("感谢您的浏览,期待能够加入贵公司!"); | ||
layui.use(function(){ | ||
var layer = layui.layer; | ||
var util = layui.util; | ||
layer.msg('Hello World', {icon: 6}); | ||
// $("#userName").innerHTML = data.userName | ||
// $("#job").innerHTML = data.job | ||
var laytpl = layui.laytpl,$=layui.jquery | ||
$('#view').html("渲染中...") | ||
//引入外部html | ||
$.get('assets/pages/home.html',function(homePage){ | ||
//渲染并输出结果 | ||
laytpl(homePage).render(data, function(str){ | ||
$('#view').html(str); | ||
}); | ||
}); | ||
}) | ||
|
Oops, something went wrong.