The Hermite–Hadamard (HH)-type inequality plays a very important role in the fields of basic mathematics and applied mathematics. In recent years, many scholars have expanded and improved it. Although we have achieved some research results about HH-type inequality, the research on discrete HH-type inequalities has just begun, and a lot of work needs to be improved. In this paper, we introduce (s,m)(s,m)-convex function and present discrete HH-type inequalities on time scale with discrete substitution method. In addition, the Hermite–Hadamard–Fejér(HHF)-type inequalities on time scale will be obtained, where the integrand is ϕφϕφ, ϕϕ is (s,m)(s,m)-convex function on [a,b][a,b] and φφ is symmetric with respect to a+mb2a+mb2, our results in some special cases yield the well-known classic HHF-type inequalities. Finally, through the discrete substitution method, we get discrete fractional HH-type inequality and discrete fractional HHF-type inequality for (s,m)(s,m)-convex function.