--- title: c#-1 tags: 資安筆記-c# --- 老師的教材:teacher.syset.com ---  ---  --- VSCODE安裝軟體:用CTRL+放大字 確認dotnet是否有裝(要在網址裝):https://dotnet.microsoft.com/download/dotnet-core/3.1 要裝這些-64 位元的連結: https://dotnet.microsoft.com/download/dotnet-core/thank-you/sdk-3.1.401-windows-x64-installer https://dotnet.microsoft.com/download/dotnet-core/thank-you/runtime-aspnetcore-3.1.7-windows-x64-installer https://dotnet.microsoft.com/download/dotnet-core/thank-you/runtime-3.1.7-windows-x64-installer 裝C#:  CTRL+~開啟終端機  dir整齊才是對的(有的V會亂/有的沒V會亂)  ---  --- 做MVC程式- 1.先建資料夾C:\Demos\20200824 2.建立專案名稱   --- 在VSCODE開檔案  是否debug-YES --- CTRL+~開啟終端機 dotnet run-開啟網站   進階-繼續前往  --- 定義要做的東西+網址  原來自動產生的HomeController.cs  程式碼: 複製建一個 DemoController .cs  dotnet run 要先CTRL+C完 才能再dotnet run ----    建立屬性 ---  --- DEBUG方法:CTRL+~開啟終端機 終端機跑掉了 都在powershell 沒有在dotnet ----   ---- 有3個檔案(快一點的寫法都是用複製的)  https://gist.github.com/jzs2home/5689f1e9b4976cebd0134b574e913181 https://gist.github.com/jzs2home/bce41d06a843dfed6706a938d71b94e3 https://gist.github.com/jzs2home/ef33d52716090fbf095d9c94a3484422 --- cd..回上一層 另外一種寫法-(要編輯模式才看的到) <html> <head> <meta charset="UTF-8"> </head> <body> <form> No1: <input type="text" id="no1" /><br/> No2: <input type="text" id="no2" /><br/> <input type="button" value="計算" id="btn1" /><br/> Answer: <span id="answer"></span> </form> </body> </html>
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up