ie8 不能赋值问题【ie8 jquery要2.0以下的版本】
$('#test').on('blur', function(e){
console.log("test blur")
e.stopImmediatePropagation()
})
在ie8选择时间就触发blur事件,这个事件会导致时间选择器先关闭,从而导致无法赋值,我分析半天代码,算是一个解决方案吧。暂时这样子,没有发现其他的问题。 test 是 测试iput的 id.
PLEASE. Help me update documentation. Doc.tpl This file will be automatically displayed on the site
npm install jquery-datetimepickerOR
yarn add jquery-datetimepickeror download zip
==============
!!! The latest version of the options 'lang' obsolete. The language setting is now global. !!!
Use this:
jQuery.datetimepicker.setLocale('en');jQuery Plugin Date and Time Picker
DateTimePicker
DatePicker
TimePicker
Options to highlight individual dates or periods
Requires Node and NPM Download and install node.js.
Install:
- Install
bowerglobally withnpm install -g bower. - Run
npm install. npm will look atpackage.jsonand automatically install the necessary dependencies. - Run
bower install, which installs front-end packages defined inbower.json.
Notice: If you use Bower v1.5.2, you will get error: The "main" field cannot contain minified files
You can regress to version 1.3.12
npm uninstall bower -gnpm install -g bower@1.3.12
Build:
First install npm requirements: npm install -g uglifycss concat-cli
Then build the files: npm run build
When build completed, you'll have the following files:
- build/jquery.datetimepicker.full.js - browser file
- build/jquery.datetimepicker.full.min.js - browser minified file
- build/jquery.datetimepicker.min.js - amd module style minified file





