java_function.js
$(#call).click(function(){
alert("gogo");
});
ajax_call.js
This function called when scroll down
#append $(#append).append(data); (data is a.html)
a.html
<script type=text/javascript src=java_function.js />
<script type=text/javascript src=aja
我的代码:
<head>
<!-- All the required scripts and CSS -->
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"><
我开始学习angular 4。我有多个div节,每个div节都有按钮和内容,一次点击按钮点击就会显示各自的div,一次点击另一个按钮隐藏别人。
<div *ngFor="let number of [0,1,2,3,4] ; let i = index">
<div>
<button (click)="showContent(this);"> Click Me {{index}} </button
<div class="content"> Hello world {{in