Vergleich admin/jscripts/codemirror/mode/javascript/typescript.html - 1.8.1 - 1.8.24

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 9Zeile 9
<script src="javascript.js"></script>
<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>
<div id=nav>

<script src="javascript.js"></script>
<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>
<div id=nav>

  <a href="http://codemirror.net"><img id=logo src="../../doc/logo.png"></a>

  <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>


<ul>
<li><a href="../../index.html">Home</a>
<li><a href="../../doc/manual.html">Manual</a>


<ul>
<li><a href="../../index.html">Home</a>
<li><a href="../../doc/manual.html">Manual</a>

    <li><a href="https://github.com/marijnh/codemirror">Code</a>

    <li><a href="https://github.com/codemirror/codemirror">Code</a>

  </ul>
<ul>
<li><a href="../index.html">Language modes</a>

  </ul>
<ul>
<li><a href="../index.html">Language modes</a>

Zeile 28Zeile 28

<div><textarea id="code" name="code">
class Greeter {


<div><textarea id="code" name="code">
class Greeter {

	greeting: string;
constructor (message: string) {
this.greeting = message;
}
greet() {
return "Hello, " + this.greeting;
}

  greeting: string;
constructor (message: string) {
this.greeting = message;
}
greet() {
return "Hello, " + this.greeting;
}

}   

var greeter = new Greeter("world");

}   

var greeter = new Greeter("world");

Zeile 42Zeile 42
var button = document.createElement('button')
button.innerText = "Say Hello"
button.onclick = function() {

var button = document.createElement('button')
button.innerText = "Say Hello"
button.onclick = function() {

	alert(greeter.greet())

  alert(greeter.greet())

}

document.body.appendChild(button)

}

document.body.appendChild(button)