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
Public Sub ShowPopMessage(ByRef mpage As Page, ByVal msg As String, Optional ByVal strClientScript As String = "", Optional ByVal key As String = "") | |
Dim script As String = "" | |
script += "<script language='JavaScript'>" | |
script += "window.alert('" + msg.Replace("'", "").Replace(vbCrLf, "") + "');" & vbCrLf | |
script += strClientScript & vbCrLf | |
script += "</script>" | |
mpage.ClientScript.RegisterStartupScript(mpage.GetType, key, script) | |
'ScriptManager.RegisterClientScriptBlock(mpage, mpage.GetType(), "msg", "confirm('" & msg.Replace("'", "").Replace(vbCrLf, "") & "')", True) | |
End Sub |
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
// 引用path模組 | |
const path = require('path'); | |
// import Plugin | |
const HtmlWebPackPlugin = require('html-webpack-plugin'); | |
module.exports = { | |
// 這個webpack打包的對象,這裡面加上剛剛建立的index.js | |
// by default is './src/index.js' | |
entry: [ |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>my first react app without CRA command</title> | |
</head> | |
<body> | |
<div id="root"></div> |
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
import React from "react"; | |
import ReactDOM from "react-dom"; | |
let element = <button>Hello World GGC</button> | |
ReactDOM.render(<>{element}</>, document.getElementById("root")); | |
// In React 18 | |
//const root = ReactDOM.createRoot(document.getElementById("root")); |