我希望如果在启动或更新中布尔两个标志都为true,则使objectsToScale为double。
我希望如果标志2为true,则从objectsToScale的对象之一将其复制两次,并将两个新的重复对象添加到List objectsToScale。
这个想法是要多复制两个,并用它们更新列表。
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap Example</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- link -->
<link rel="stylesheet" href=
"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<!-- script -->
<script src="https://ajax.googleapis.com/ajax/libs/
jquery/3.3.1/jquery.min.js"> </script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/
js/bootstrap.min.js"></script>
</head>
<!-- custom style , experiment-->
<style>
</style
<body>
<!-- menu -->
<nav class="navbar navbar-inverse">
<!-- container->
<div class="container-fluid">
<!-- header -->
<div class="navbar-header">
<button type="button" class="navbar-toggle"
data- toggle="collapse"
data-target="#myNavbar">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">WebSiteName</a>
</div>
<!-- menu dropdown -->
<div class="collapse navbar-collapse" id="myNavbar">
<!-- menu unordered list -->
<ul class="nav navbar-nav">
*<li class="active"> <!-- menu button group items -->
<div class="btn-group">
<a href="#"><button type="button" class="btn btn-
primary">Home</button></a>
<!-- menu button group items -->
<a href="#"><button type="button" class="btn btn-
primary" > Samsung</button></a>
</div>
</li>
*<li> <!-- menu button group items -->
<div class="btn-group">
<div class="btn-group">
<div class="dropdown">
<button class="btn btn-primary
dropdown-toggle"
type="button"
data-toggle="dropdown">Dropdown
<span class="caret"></span>
</button> <!--submenu 1-->
<ul class="dropdown-menu
dropdown-menu-left" >
*<li><a href="#" >HTML</a></li>
<li><a href="#"> CSS</a></li>
*<li><a href="#"> Javascipt </a></li>
<li class="divider"></li>
*<li><a href="#">About Us</a></li>
</ul>
</div>
</div>
<div class="btn-group">
<div class="dropdown">
<button class="btn btn-primary dropdown-toggle"
type="button"
data-toggle="dropdown">Dropdown2
<span class="caret"></span></button>
<!-- submenu 2 -->
<ul class="dropdown-menu dropdown-menu-left">
*<li><a href="#">HTML2</a></li>
*<li><a href="#">CSS2</a></li>
*<li><a href="#">JavaScript2</a></li>
*<li class="divider"></li>
*<li><a href="#">About Us2</a></li>
</ul>
</div>
</div>
</div>
</li>
*<li>
<div class="btn-group">
<a href="#"><button type="button"
class="btn btn-primary">
Home </button></a>
<a href="#"><button type="button"
class="btn btn-primary">
Samsung</button></a>
</div>
</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<div class="btn-group">
*<li>
<a href="#">
<span class="glyphicon glyphicon-user"></span>
Sign Up</a>
<a href="#">
<span class="glyphicon glyphicon-log-in"></span>
Login</a>
*</li>
</div>
</ul>
</div>
</div>
</nav><!-- end menu -->
</body>
<!-- body end -->
</html>
<!-- end code -->
thank you
frank-->