This exception was reported because the moment library was not introduced or the multilingual Support library for moment was not introduced.
BOOSTRAP3 the corresponding datetimepicker4.17.37 control, which relies on the Moment.js date library when using a language pack, you must introduce the moment library of the multi-language support version in http://momentjs.cn/. and must be placed before the introduction of DateTimePicker. and then use
$ (' #newDate '). DateTimePicker ({
locale: ' ZH-CN ',
format: "Yyyy-mm-dd HH:mm:ss"
method to set the language.
Most of all, I've used a framework that has packaged various plug-ins including jquery libraries into a file vendor.js, and then this vendor actually contains the Moment.js library, and it's a library with no language packs ... So no matter how I introduce moment-with-locales.js in the perimeter <script> tag, this library doesn't work ... 囧 Finally, replace the moment portion of the compressed file with Moment-with-locales. It was finally resolved.