老师,代码保存后,都显示在一行上了,怎么解决
<!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>Document</title> </head> <body> <script type="module"> import add from './base1.js'; import {num1,num2} from './data.js'; add(num1,num2); </script> </body> </html>
function add(num1, num2) { alert(num1 + num2);; } export default add;
let num1 = 2; let num2 = 3; export { num1, num2 };
11
收起
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星