用JavaScript输出表格
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title> JS作业 </title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" >
var name = "张三疯";
var sex = true;
var age = 34;
var edu = "大专";
var time = "2005年7月";
var school = "北京科技大学";
//构建输出表格
var srt ="";
srt += '<table width="800" style="border-collapse:collapse;" border="1" cellspacing="0" cellpadding="5" align="center">'; srt += '<tr>'
srt += '<td colspan="4" align="center"><h2><font color="#f00">'+name+'的基本资料</font></h2></td>'
srt += '</tr>' srt += '<tr>'
srt += '<td align="right"><b>性名: </b></td>'
srt += '<td>'+name+'</td>'
srt += '<td align="right"><b>性别: </b></td>'
srt += '<td>'+(sex ? '男':'女')+'</td>'
srt += '</tr>' srt += '<tr>'
srt += '<td align="right"><b>年龄: </b></td>'
srt += '<td>'+age+'岁</td>'
srt += '<td align="right"><b>学历: </b></td>'
srt += '<td>'+edu+'</td>'
srt += '</tr>' srt += '<tr>'
srt += '<td align="right"><b>毕业时间: </b></td>'
srt += '<td>'+time+'</td>'
srt += '<td align="right"><b>毕业学校: </b></td>'
srt += '<td>'+school+'</td>'
srt += '</tr>' srt += '</table>'
document.write(srt);
</script>
</head> <body> </body>
</html>
效果图:aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAz8AAADKCAIAAAAEgGkjAAAfBklEQVR4nO3dT4gc55nH8br1YQhChzkNQghhdBCmDtLByAcjERyCYUBgdgi4ToOCvKwONiQLSpDIQSS1Bx2yEhkW4t1FEJNoQgqy2jUGQRYTOQTHMKTAwlgJ8oRl0GEOQYe+PXuof+9b9VbVW91dXf++H/qg6a6urh49/cyv3qq32hEAAAAMh9P1BgAAAKAB0hsAAMCQkN4AAACGhPQGAAAwJIukNwcAAAAr1Xp6W+BZAAAAMCK9AQAADAnpDQAAYEhIbwAAAENCegMAABgS0hsAAMCQkN4AAACGhPQGAAAwJ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rr0Gekt0GpbKS1M6EKHa927E2/0+YcE+vzUHpbGIv1sto+SYtcm96W1jCtuOnk11sVSrQl9XNy81cEstkzqimM3NHR3N5k+elkhv0yQ6BbNL3l5skXom75jrTx+forO/rvEoPSqNGR3qahrK2WJzP7RpzqbWEsFLPKJvGXnp2D9vS2tLCY/ByF4ifJbqBvxYWRJde6fmGd3rQZ9xW5LD4FJJrOYXc8gQY0OqQ3dIPCQEsoLRhRGBgT0hu6QWGgJZQWjCgMjAnpDd2gMNASSgtGFAbGhPSGblAYaAmlBSMKA2NCekM3KAy0hNKCEYWBMSG9oRsUBlpCacGIwsCYkN7QDQoDLaG0YERhYExIb+gGhYGWUFowojAwJutIbwAAAFihdtMbAAAAukJ6AwAAGBLSGwAAwJCQ3gAAAIaE9AYAADAkpDcAAIAhIb0BAAAMCekNAABgSEhvAAAAQ0J6AwAAGBLSGwAAwJCQ3gAAAIaE9AYAADAk/w8WigEN9+lHQAAAAABJRU5ErkJggg==" alt="" />
用JavaScript输出表格的更多相关文章
- Javascript输出表格
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/ ...
- 使用JavaScript输出
使用JavaScript输出 1.如果需要JavaScript访问html元素,我们可以通过为html元素添加id属性,然后通过JavaScript的document.getElementById(i ...
- JavaScript创建表格的两种方式
方式一: var data = [ { id: 1, name: "first", age: 12 }, { id: 2, name: "second", ag ...
- aspose输出表格
利用aspose在word中输出表格 序号 姓名 性别 <<TableStart:T>><<Index>> <<Name>> ...
- vue v-for输出表格结构
v-for输出表格结构 数据库结构如下: 原理: 两个数组 a, b, 数组a的值,是数组b的键(索引), 变量拼接(红色区域): <table> <tr> <th v ...
- Javascript合并表格相同内容单元格示例
效果图: HTML代码: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http: ...
- JavaScript 实现表格隔行变色
JavaScript 实现表格隔行变色 版权声明:未经授权,严禁分享! 构建界面 界面HTML代码 <style> #data,th,td{ border: 1px solid #aaaa ...
- javascript生成表格增删改查 JavaScript动态改变表格单元格内容 动态生成表格 JS获取表格任意单元格 javascript如何动态删除表格某一行
jsp页面表格布局Html代码 <body onload="show()"> <center> <input type="text" ...
- JavaScript输出
JavaScript不提供任何的内建或是打印方式 JavaScript的显示方案主要有以下四种: window.alert() 写入警告框 document.write() 写入 HTML 输出 ...
随机推荐
- Codeforces Round #313 (Div. 1)
官方英文题解:http://codeforces.com/blog/entry/19237 Problem A: 题目大意: 给出内角和均为120°的六边形的六条边长(均为正整数),求最多能划分成多少 ...
- 《JavaScript高级程序设计》读书笔记--(2)基本概念
变量 Javascript 是区分大小写的, 也就是说 var nun 与 var Num 是不同的变量. ECMAScript的变量是松散类型的,所谓松散类型就是可以保存任何类型的数据.ECMASc ...
- BAE hibernate c3p0数据库连接池
根据BAE官方文档:bae是不支持连接池的,但今天试验却能实现hibernate c3p0连接池,避免mysql连接超时 hibernate主配置文件hibernate.cfg.xml代码 <! ...
- js③
while(true){ console.log('hello'); }/每次执行完语句块之后,又会跳回去检查小括号里面的布尔值,如果为true,那么又会执行语句块一次. //while循环//var ...
- how a 程序猿 doubled his salary?
One thing i can say, no matter what position i was in or what was my salary, i never stopped studyin ...
- 点击按钮跳出隐藏的div层,并设背景。
style: .black_overlay{ display: none; position: absolute; top: 0%; left: 0%; width: 100%; height: 10 ...
- iOS thirdKeyboard Develop (APP Extension)
如果需要开发第三方键盘 首先得了解一下苹果官方文档 https://developer.apple.com/library/ios/documentation/General/Conceptual/ ...
- 如何在静态博客hexo中只显示摘要信息
默认情况下hexo博客(如本站)的首页显示的是完整的文章 – 而文章比较长的时候这无疑会带来诸多不遍. 那怎么样才能只显示个摘要呢? 方法说白了,其实很简单 – 只要加入一个<!-- more ...
- 安装PLSQL,登录报“无法解析指定的连接标识符的错误”
安装PLSQL,本地不需要安装oracle服务器,但要安装oracle客户端. 一.安装客户端需要配置服务命名,tnsnames.oRA文件和监听(因为我开始没有配置监听,所以一直报无法解析制定的连接 ...
- 2016-7-15(1)使用gulp构建一个项目
gulp是前端开发过程中自动构建项目的工具,相同作用的还有grunt.构建工具依 靠插件能够自动监测文件变化以及完成js/sass/less/html/image/css/coffee等文件的语法检查 ...