我试图在提交文本的文本框中删除文本

时间:2019-08-18 18:02:59

标签: javascript php html text

我正在制作一个聊天系统,我想在发送时删除文本框中的文本。但是我尝试了一下,但没有成功。如果有人帮助我,我会很高兴。

refcount

1 个答案:

答案 0 :(得分:0)

在将value设置为''时,您需要定位- name: obtain registration token when: gitlab_host is defined delegate_to: "{{ gitlab_host }}" command: 'gitlab-rails runner -e production "puts Gitlab::CurrentSettings.current_application_settings.runners_registration_token"' register: runners_registration_token changed_when: false - name: set gitlab_runner_token when: gitlab_host is defined and runners_registration_token.rc == 0 set_fact: gitlab_runner_token: "{{ runners_registration_token.stdout }}" - name: register docker runner when: docker_runner|bool command: | gitlab-ci-multi-runner register \ --non-interactive \ --url "{{ gitlab_external_url }}" \ --registration-token "{{ gitlab_runner_token }}" \ --description "docker-runner" \ --executor "docker" \ --docker-network-mode="host" \ --docker-tlsverify=false \ --docker-privileged \ --tag-list '{{ gitlab_runner_tags | join(",") }}' \ --docker-image='{{ gitlab_runner_image |default('alpine') }}' ,而不是表单。另外,仅供参考,您应该使用按钮而不是锚标签来提交表单。锚标记用于链接到其他页面或页面上的部分,按钮用于执行Javascript中的操作。