首页 > 解决方案 > cypress 中 Public->index.html 的功能是什么,我们需要将它推送到 git/github 吗?

问题描述

在我的框架中,我有 public->index.html ,其中有以下元素。我有几个问题:

  1. 这个js文件的功能是什么?
  2. 我是否需要将其推送到 GIT/GITHUB
<!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>Five Minutes of HTML</title>
    <link rel="stylesheet" type="text/css" href="/styles.css">
</head>
<body>
    <h1>Cypress Cookies</h1>
    <button id="clicked">
        Click to generate cookies
    </button>
    <h2>Various Inputs</h2>
    <section>
        <div class="container">
            <label for="normal-text">Normal Text Input</label>
            <input type="text" name="normal-text" id="normal-text">
        </div>
        <div class="container">
            <label for="key-combo">Key Combination Input</label>
            <input type="text" name="key-combo" id="key-combo">
        </div>
        <div class="container">
            <label for="date">Date Input</label>
            <input type="date" name="date" id="date">
        </div>
        <div class="container">
            <label for="month">Month Input</label>
            <input type="month" name="month" id="month">
        </div>
        <div class="container">
            <label for="week">Week Input</label>
            <input type="week" name="week" id="week">
        </div>
        <div class="container">
            <label for="time">Time Input</label>
            <input type="time" name="time" id="time">
        </div>
.....


标签: htmlnode.jsgithubcypresselement

解决方案


推荐阅读