function socialSecurity() { var jsonData = [{ "year": "2021", "employedPerson": 3.74, "unemployPerson": 0.76, "unemployRate": "-", "ventureFund": 3486, "skillIdentification": 8330, "subsidy": 1.84, "totalDispute": 4259, "involvedPeople": 4270, "casesClose": 4012, "arbitratAward": 386, "closeRate": 97 }, { "year": "2022年截至9月", "employedPerson": 3.8, "unemployPerson": 0.93, "unemployRate": "-", "ventureFund": 2466, "skillIdentification": 7489, "subsidy": 0.74, "totalDispute": 4246, "involvedPeople": 4300, "casesClose": 3697, "arbitratAward": 318, "closeRate": 87 }, { "year": "2023年截至6月", "employedPerson": 2.92, "unemployPerson": 1.07, "unemployRate": 5.5, "ventureFund": 1701, "skillIdentification": 5490, "subsidy": 0.23, "totalDispute": 3294, "involvedPeople": 3302, "casesClose": 2655, "arbitratAward": 165, "closeRate": 65 }] // 初始化年份 // console.log(document.getElementById("year")) // document.getElementById("year").value='2023年截至6月'; $('#year').on('change', function () { var value = $(this).val(); for (var i = 0; i < jsonData.length; i++) { if (jsonData[i].year == value) { var itemDataHtml = `