As can be seen, the (hyper)polarizabilities of C18 and (BN)nC(18-2n) (n = 1-9) under frequency-dependent fields (λ = 1907, 1460, 1340, 1180, and 1064 nm) are greater than those in zero-frequency limit (λ = ∞ nm), and the higher the laser frequency (i.e., the smaller the laser wavelength (λ)) of the external electric field, the greater the corresponding (hyper)polarizabilities of the molecule. This demonstrates the positive frequency dispersion effect of the electric field on the response properties. This effect is observed to be relatively weak in increasing molecular polarizability, but significant in increasing their first hyperpolarizability. The (hyper)polarizabilities of C18 and (BN)nC(18-2n) (n = 1-9) at any frequency of external field still maintain the order of magnitude discussed above in zero-frequency limit (λ = ∞ nm), and molecules with higher (hyper)polarizability in zero frequency limit (λ = ∞ nm) exhibit stronger frequency dispersion effects.