<!DOCTYPT html> <html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title>ppwjs歡迎您</title> <link rel="icon" href="/favicon.ico" type="image/x-icon" /> </head> <body> </body> <script src="/jsVersionControl.js" charset="utf-8" type="text/javascript"></script> <script src="/lib/_sys_ppwjsmain.js" charset="utf-8" type="text/javascript"></script> <script charset="utf-8" type="text/javascript">引入("/index.js",$真)</script> </html>
//程序開始 引入(_sys_bootstrap4_all_addr + ".js",$真); var 標題1 = "預格式 pre 效果".到標題元素(2); var 段落1 = 建立段落("如下是bootstrap中預格式的效果:"); var 段落2 = 建立段落("For multiple lines of code, use the pre element:") var 預格式文本 = bootstrap4.建立預格式元素( "Text in a pre element\ \n is displayed in a fixed-width\ \nfont, and it preserves\ \nboth spaces and\ \nline breaks." ); var 容器 = bootstrap4.建立容器(); 容器.添加子節點(標題1,段落1,段落2,預格式文本); 加到主體(容器);