This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function addTest(a, b) { | |
return a * b; | |
} | |
var val = addTest(zzz, 5); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getBMI(weight: number, tall: number): number { | |
return weight / (tall * tall); | |
} | |
var bmi = getBMI(65, 1.75); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"compilerOptions": { | |
"target": "es5", | |
"module": "commonjs", | |
"declaration": false, | |
"noImplicitAny": false, | |
"removeComments": false, | |
"noLib": false, | |
"preserveConstEnums": true, | |
"suppressImplicitAnyIndexErrors": true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<script type="text/javascript" src="bmi.js"></script> | |
</head> | |
<body> | |
<script type="text/javascript"> | |
alert(bmi); | |
</script> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div> | |
<!-- ここは親画面 --> | |
<button ng-click="モーダルダイアログ表示する関数" /> | |
</div> | |
<!-- モーダルダイアログ --> | |
<div ng-cloak> | |
<!-- モーダルダイアログの中身 --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this.doAfunc(); | |
this.doBfunc(); | |
doAfunc() { | |
hhtp通信 | |
} | |
doBfunc() { | |
hhtp通信 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
doAfunc() { | |
this.$http({ | |
method: 'GET', | |
url: '/Afunc', | |
}).success((resul: any, status, headers, config) => { | |
//HTTP通信の成功 | |
this.$scope.$emit('wait1', result); | |
}).error((result: any, status, headers, config) => { | |
//HTTP通信の失敗 | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.short { | |
width: 100px; | |
white-space: nowrap; | |
overflow: hidden; | |
text-overflow: ellipsis; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
::-ms-clear { | |
display: none; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"compilerOptions": { | |
"target": "es5", "module": "commonjs", "sourceMap": false, "outDir": "../sample01/js" | |
} | |
} |