异常一[size=10.5000pt]创建人
| [size=10.5000pt]曹姚姚
| [size=10.5000pt]问题标题
| [size=10.5000pt]正则表达式
| [size=10.5000pt]问题分类
| [size=10.5000pt]无异常,运行结果非断言结果
| [size=10.5000pt]一级话题
| [size=10.5000pt]
| [size=10.5000pt]问题补充
| [size=10.5000pt]
| [size=10.5000pt]附件
| var [size=9.0000pt]reg = [size=9.0000pt]/^\w{6,10}$/;
[size=10.5000pt]
| [size=10.5000pt]问题答案
| 问题分析[size=10.5000pt]:
[size=10.5000pt]编写不报错,运行编译报错,错误提示并发修改异常
| 问题解决方法:
修改代码第一行
[size=10.5000pt]把set.remove(next);代码中的set修改为用迭代器名.remove();(小括号内不填写内容)
| [size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
异常二[size=10.5000pt]创建人
| [size=10.5000pt]曹姚姚
| [size=10.5000pt]问题标题
| [size=10.5000pt]没有加表格
| [size=10.5000pt]问题分类
| [size=10.5000pt]代码编写[size=10.5000pt]缺少
| [size=10.5000pt]一级话题
| [size=10.5000pt]秘密麻麻一片没有格式
| [size=10.5000pt]问题补充
| <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<script>
for (var i=1;i<=9;i++){
for (var j=1;j=i;j++){
document.write(i+"x"+j+"="+(i*j)+" ")
}
}
</script>
</body>
</html>
[size=10.5000pt]
| [size=10.5000pt]附件
| [size=10.5000pt]
| [size=10.5000pt]问题答案
| 问题分析[size=10.5000pt]:
[size=10.5000pt]没有添加表
| 问题解决方法:
添加<table><tr><td></td></tr></table>并设置表的格式
| 异常三[size=10.5000pt]创建人
| [size=10.5000pt]曹姚姚
| [size=10.5000pt]问题标题
| [size=10.5000pt]方法选择错误
| [size=10.5000pt]问题分类
| [size=10.5000pt]顺序不符合要求
| [size=10.5000pt]一级话题
| <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Array_对象</title>
<script>
var arr=[1,2,3,"大王","123"];
arr.push("王炸");
document.write(arr+"<br>")
document.write(arr[1]+"<br>");
document.write(arr[3]+"<br>");
document.write(arr[5]+"<br>");
document.write(arr.join("小王")+"<br>"); //join方法是将数组中的元素按照指定的分隔符拼接为字符串
document.write(arr.length)
</script>
</head>
<body>
</body>
</html>
[size=10.5000pt]
| [size=10.5000pt]问题补充
| [size=10.5000pt]
| [size=10.5000pt]附件
| [size=10.5000pt]
| [size=10.5000pt]问题答案
| 问题分析[size=10.5000pt]:
[size=10.5000pt]方法记忆不清晰导致效果不佳
| 问题解决方法:
使用正确的方法做出想要的结果
| 异常四[size=10.5000pt]创建人
| [size=10.5000pt]曹姚姚
| [size=10.5000pt]问题标题
| [size=10.5000pt]编译问题
| [size=10.5000pt]问题分类
| [size=10.5000pt]打印常量,编译错误
| [size=10.5000pt]一级话题
| for (int i = 0, j; i < list.size(); i++) {
boolean f = true;
for (j = 0; j < list.size(); j++) {
if (list.get(i).equals(list.get(j)) && i != j) {
System.out.println(list.get(i).toString() + "获得了缘分大礼包");
f = false;
break;
}
}
if (f) {
System.out.println(list.get(i).toString() + "获得了普通大礼包");
}
[size=10.5000pt]
| [size=10.5000pt]问题补充
| [size=10.5000pt]
| [size=10.5000pt]附件
| [size=10.5000pt]//空常量
[size=10.5000pt] [size=10.5000pt] 普通大礼包没有判断条件,只能全部发放[size=10.5000pt];
| [size=10.5000pt]问题答案
| 问题分析[size=10.5000pt]:
普通大礼包没有判断条件,只能全部发放
| 问题解决方法:
普通大礼包没有判断条件,只能全部发放
| 异常五[size=10.5000pt]创建人
| [size=10.5000pt]曹姚姚
| [size=10.5000pt]问题标题
| [size=10.5000pt]编译问题
| [size=10.5000pt]问题分类
| [size=10.5000pt]属性值设置
| [size=10.5000pt]一级话题
| [size=10.5000pt] [size=10.5000pt]属性值设置缺失导致图片留白[size=10.5000pt] ^
[size=10.5000pt]1 个错误
| [size=10.5000pt]问题补充
| [size=10.5000pt]
| [size=10.5000pt]附件
| <!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Bootstrap 101 Template</title>
<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<header class="container-fluid">
<div class="row">
<div class="col-md-12" style="padding: 0px"><img width="100%" src="图片/top_banner.jpg"> </div>
</div>
<!--第二行-->
<div class="row">
<div class="col-md-3" style="padding: 0px"><img width="100%" src="图片/logo.jpg"> </div>
<div class="col-md-5" align="center">
<form class="navbar-form navbar-left" role="search">
<div class="form-group">
<input type="text" class="form-control" placeholder="请输入路线">
</div>
<button type="submit" class="btn btn-default">搜索</button>
</form>
</div>
<div class="col-md-4" style="padding: 0px"><img width="100%" src="图片/hotel_tel.png"> </div>
</div>
<!--第三行导航栏-->
<div class="row">
<nav class="navbar navbar-default">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">首页</a>
</div><div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li class="active"><a href="#">JavaEE <span class="sr-only">(current)</span></a></li>
<li><a href="#">php</a></li>
<li><a href="#">php</a></li>
<li><a href="#">php</a></li>
<li><a href="#">php</a></li>
</ul>
</div> </div> </nav>
<!--第四行轮播图-->
<div class="row">
<div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
<!-- Indicators -->
<ol class="carousel-indicators">
<li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
<li data-target="#carousel-example-generic" data-slide-to="1"></li>
<li data-target="#carousel-example-generic" data-slide-to="2"></li>
</ol>
<div class="carousel-inner" role="listbox">
<div class="item active">
<img src="图片/banner_1.jpg" alt="兵马俑">
<div class="carousel-caption">
</div>
</div>
<div class="item">
<img src="图片/banner_2.jpg" alt="北京一日游">
<div class="carousel-caption">
</div>
</div>
<div class="item">
<img src="图片/banner_3.jpg" alt="玉龙雪山">
<div class="carousel-caption">
</div>
</div>
</div> <a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
</div>
</div>
<div class="container">
<div class="row">
<img src="图片/icon_5.jpg">黑马精选<hr>
</div>
</he
<script src="js\jquery-3.2.1.min.js"></script>
<script src="js\bootstrap.js"></script>
</body>
</html>
[size=10.5000pt]
| [size=10.5000pt]问题答案
| 问题分析[size=10.5000pt]:
[size=10.5000pt]图片属性没有设置好缺少padding: [size=12.0000pt]0px.
| 问题解决方法:
加上就解决了图片边上留白问题
| [size=10.5000pt]
|
|