```html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>TItle of the document</title>
</head>
<body>
<input type="text" value="John Doe" disabled>
<input type="text" value=John Doe>
<input type="text" value="John Doe">
<input type="text" value='John Doe'>
</body>
</html>
运行结果如下:

第一个 加了禁用
第三四个 基本没区别 就是单引号和双引号的问题
第二个 不加引号的话 因为有空格 它只取了前一部分
disabled是禁止操作,value是赋值,严谨的写法是要加引号
您好,我是有问必答小助手,您的问题已经有小伙伴帮您解答,感谢您对有问必答的支持与关注!