JS中对input中内容做判断,如果为空,就让其显示0首先需要div布局,先需要将整体的框架布局起来:<!DOCTYPE html><html lang="en"><head><meta 2023-04-28JavaScript330