0
私はMVCのアーキテクチャとデータのモデルと実際に混同しています。私はデータベースが格納されているデータを知っている。次の質問 Q1にお答えください。次のコードでは、それがモデルであり、ビューは何ですか? Q2)データ/データベースがモデルになるときは?MVCのモデルとデータとデータベースの違いは何ですか?
<!DOCTYPE html>
<html>
<body>
<p>Is this line is a model or a view or data?</p>
<p>In my opinion this button is a controller that shows
"Hello world" as a view. Am i right?</p> <button onclick="myFunction()">Click me</button>
<p id="demo"></p>
<script>
function myFunction() {
document.getElementById("demo").innerHTML = "Hello World";
}
</script>
</body>
</html>
ウェブアプリケーションのコンテキストで説明してください。