我正在使用 materialize css datepicker 。我需要选择从 1950 年到 2005 年的 yearRange 但 yearRange 不起作用 yearRange 也使用以下代码显示未来年份的下拉列表
$(document).ready(function(){
$('.datepicker').datepicker(
{
format: 'dd-mm-yyyy',
maxDate: new Date(),
selectMonths: true,
changeMonth: true,
changeYear: true,
yearRange: 100,
});
Run Code Online (Sandbox Code Playgroud)
如果我在日期选择器年份下拉列表中将 yearRange 更改为负数(即 yearRange:-100)
我在 UPS 评级 API 集成中遇到问题。
我的请求正文是:
{
"RateRequest": {
"shipper": {
"address": {
"postal_code": "12345",
"country_code": "US"
}
},
"shipTo": {
"address": {
"postal_code": "54321",
"country_code": "US"
}
},
"shipment": {
"package": {
"dimensions": {
"unit_of_measurement": "IN",
"length": "10",
"width": "6",
"height": "4"
},
"weight": {
"unit_of_measurement": "LBS",
"weight": "1"
}
}
}
}
}
Run Code Online (Sandbox Code Playgroud)
网址 - https://wwwcie.ups.com/api/ rating/v1/Rate?additionalinfo=string
并在标头中传递访问令牌,但它总是返回
{
"response": {
"errors": [
{
"code": "250002",
"message": "Invalid Authentication Information."
}
]
}
}
Run Code Online (Sandbox Code Playgroud)