Untitled

 avatar
user_5026037
plain_text
a month ago
853 B
1
Indexable
Never
<!DOCTYPE html>
<html>
<head>
    <title>问题提交</title>
</head>
<body>
    <h1>问题提交</h1>
    <form id="problemForm">
        <label for="problemDescription">问题描述:</label>
        <textarea id="problemDescription" rows="4" cols="50"></textarea><br><br>
        <label for="assignee">责任人:</label>
        <input type="text" id="assignee" name="assignee"><br><br>
        <input type="file" id="fileInput"><br><br>
        <button type="submit">提交</button>
    </form>

    <script>
        document.getElementById("problemForm").addEventListener("submit", function(event) {
            event.preventDefault();
            // 使用JavaScript获取表单数据和上传文件,然后将数据发送到后端API
            // 可以使用Fetch API或Axios库来处理HTTP请求
        });
    </script>
</body>
</html>