<script type="text/javascript">
Calendar.setup(
{
inputField : "data", // ID of the input field
ifFormat : "%m %d, %Y", // the date format
button : "trigger" // ID of the button
}
);
</script>
这种写法是什么意思?
Calendar.setup(
{
inputField : "data", // ID of the input field
ifFormat : "%m %d, %Y", // the date format
button : "trigger" // ID of the button
}
);
</script>
这种写法是什么意思?
{}那么,接收到的 参数 tab结构如下tab.inputField ="data"
tab.ifFormat="%m %d, %Y"
tab.button="trigger"
bb:'aa',
cc:function(){ }}总之js的语法比较灵活,给自己发挥的空间还是比较大的 , 选择自己喜欢的一种写法就可以了,关键是程序是干什么的要庆清楚