Uncaught TypeError: Cannot set property 'value' of undefined 提示这个是什么意思?
我的代码是:
var title;
$(document).ready(function(){
title.value = formartWeek();//这里报错
})
function formartWeek(){
return currentYear + "年 第 " + currentWeek + " 周";
}
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
把第一行改成
var title = {}