You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
905 B
Plaintext

11 months ago
$(function () {
var webuser = new WebUser();
var typeid = GetQueryString("typeid");
var urldata = [
{ url: 'Default.htm', text: '我的日志' },
{ url: 'Write.htm', text: '写日志' },
{ url: 'FenXi.htm', text: '日志分析' },
{ url: 'ShareTo.htm', text: '分享日志' },
{ url: 'CheckRZ.htm', text: '审核日志' },
]
var html = "";
// html += " 您好: " + webuser.Name;
for (var i = 0; i < urldata.length; i++) {
var ud = urldata[i];
//console.log(en)
if (typeid == i||(typeid==null&&i==0))
html += "<a href='" + ud.url + "?typeid=" + i+ "' class='layui-btn layui-btn-danger layui-btn-sm'>" + ud.text + "</a> ";
else
html += "<a href='" + ud.url + "?typeid=" + i + "' class='layui-btn layui-btn-sm'>" + ud.text + "</a> ";
}
$("#toolbar").html(html);
});