<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="utf-8" />
<script src="sample.js"></script>
<script src="jquery.js"></script>
<script src="ex.js"></script>
<title>信長の野望</title>
</head>
<body onload="sample()">
<p id="memo"></p>
</body>
</html>
var x = new Array();
function sample(){
for (s = 1; s < 6;s++ ){
x[s]=new Array();
}
for (s = 1; s < 6;s++ ){
for(sx=1;sx<6;sx++){
x[s][sx] = 500;
}}
var sub = new ex();
sub.x = x;
sub.f();
x = sub.x;
$("#memo").html(x[3][3]);
}
class ex{
x:any[]=new Array();
f():void{
var s:number;
var sx:number;
for(s=1;s<6;s++){
for(sx=1;sx<6;sx++){
this.x[s][sx]=70+this.x[s][sx];
}}
}
}
最終更新:2015年10月01日 17:49