為提供更好的用戶體驗,本網站使用Cookie分析和其它追蹤。當您使用本網站,即表示您同意Cookie技術支援。若您不同意Cookie的存取,可透過瀏覽器的設定選擇拒絕接受Cookie。
更多資訊請參閱《公職王會員服務條款暨隱私權聲明》。
線上客服
快速導覽目錄
檔案下載
延伸閱讀
","marketNote":"","without_public":0,"seoTitle":"台鐵福利有多好?讓你一秒想成為台鐵員工!","seoDescription":"除了佛系老闆跟給力同事,你覺得工作最重要的是什麼?當然是工作環境與福利制度,薪資給予透明、福利制度健全的公職好缺無私分享,台鐵福利有多好?讓你一秒想成為台鐵員工!吹響哨聲,守護月台上的旅客,為各地旅人維護重要的鐵路運輸,更是火車控、鐵道迷不能錯過的夢幻職缺。","is_form_consultation":"1","isShow":"1","publishDate":"2021-03-19 17:31:14","create_date":"2021-03-19 17:31:14","modify_date":"2021-09-01 15:19:54","utest":"763b4748-001e-42b6-9a25-111acf82d6ba","filename":"https://cdn.public.com.tw/images/news-images01.jpg","keywords":"A023248,A023248,A023248,A023248,A023248,A023248,A023248,A023248","keywordsName":"事務管理,場站調車,運輸營業,機械工程,機檢工程,鐵路特考佐級,鐵路特考員級,鐵路特考高員級","tag_classification":"civilservice","tag_classification_name":"公職特考類","tag_public_TestType":"","formatdate":"20210319","rownum":2,"displayname_1":null,"displayname_2":null,"displayname_3":null,"filename1":"","filename2":"","filename3":"","file_name_1":null,"file_name_2":null,"file_name_3":null,"file_path_1":null,"file_path_2":null,"file_path_3":null,"TitleKind":"2","TestType":"","c_browse":"108"}]; const headline = `

${detail[0].title}

訊息來源:${detail[0].source} 發佈時間:${detail[0].publishDate.substring(0, 10)} (${detail[0].modify_date} 更新)/瀏覽數 ${detail[0].c_browse}

`; $('.headline').html(headline); $('.contents').html(detail[0].note); CreateTagClassificationName(detail); CreateAbstract(detail[0].note); CreateFileDL(detail); console.table('detail', detail) CreateKeyWordTag(detail); GetExamInfoTop5WithKeyword(detail[0].keywordsName, detail[0].utest); GetLocalLink(); $('.detail-title').empty().html($('.h1-title').html()); } //分類 function CreateTagClassificationName(value) { var downloadContainer = $('.tag_classification_name'); if (value[0][`tag_classification_name`] == '') { return false; } html = value[0][`tag_classification_name`].replace(',', '、'); downloadContainer.append(html); } //導覽 function CreateAbstract() { var abstract_list = $(".abstract-list"); var headings = $('.contents').find("h2, h3"); if (headings.length == 0) { $('.abstract').hide(); return false; } headings.each(function (index) { var heading = $(this); var headingText = heading.text(); var headingId = "heading" + index; heading.attr("id", headingId); if (heading.is("h2")) { const str = `
${headingText}
`; abstract_list.append(str); } else if (heading.is("h3")) { const str = `
${headingText}
`; abstract_list.append(str); } }); abstract_list.on("click", "a", function (e) { e.preventDefault(); $(this).siblings("ul").slideToggle(); }); abstract_list.on("click", "a[href^='#']", function (e) { e.preventDefault(); var targetId = $(this).attr("href").substring(1); var targetElement = $("#" + targetId); $("html, body").animate({ scrollTop: targetElement.offset().top }, 500); }); } function CreateFileDL(value) { var downloadContainer = $('.filedownload-ul'); var hasFile = false; for (var i = 1; i <= 3; i++) { var fileName = value[0][`file_name_${i}`]; var rownum = value[0]['rownum']; var formatdate = value[0]['formatdate']; if (value[0][`displayname_${i}`]!= null) { var displayName = value[0][`displayname_${i}`].split('.')[0]; if (fileName !== '') { var html = `
  • ${displayName}
  • `; downloadContainer.append(html); hasFile = true; } } } if (!hasFile) { $('.filedownload').remove(); } } function DownFile(number, rownum, formatdate, fileName) { var source = "examInfo"; var url = "/news/DownFile"; var form = ` ' `; $('body').append(form); window.open('', 'File'); $('#myFile').submit().remove(); } function CreateKeyWordTag(value) { var downloadContainer = $('.tagLabel'); var hasTag = false; if (value[0][`keywordsName`] == '') { $('.tagLabel').remove(); return false; } var tag = value[0][`keywordsName`].split(','); for (var i = 0; i < tag.length; i++) { var html = `${tag[i]}`; downloadContainer.append(html); hasTag = true; } } //延伸閱讀 function GetExamInfoTop5WithKeyword(keyword,utest) { $.ajaxSettings.async = false; var formURL = "/news/GetExamInfoTop5WithKeyword"; var formData = { utest: utest, keyword: keyword, infoCount: 5, __RequestVerificationToken: $('input[name="__RequestVerificationToken"]').val(), nows: new Date().getTime() }; $.ajax({ type: "POST", url: formURL, data: formData, success: function (response) { console.table('response', response) if (response.Succ == true) { var downloadContainer = $('.further-reading-ul'); var obj = JSON.parse(response.contentText) if (obj.length > 0) { for (var i = 0; i < obj.length; i++) { var html = `
  • ${obj[i].title}
  • `; downloadContainer.append(html); } } else { $('.further-reading').remove(); } } else { $('.further-reading').remove(); } }, error: function (response) { } }); $.ajaxSettings.async = true; } function GetLocalLink() { var html = ` `; $('.shareSNS').html(html); } var clipboard = new ClipboardJS('.addthis_button_link', { text: function () { return window.location.href; } }); $(document).ready(function () { const login = IsLogin_without_ShowBanner(); login.then((response) => { return response; }) .then((data) => { if (data == true) { $(".login-remind").html("").hide(); } else { var $img = $("").attr("src", "/plugins/calendar/images/login-remind.png"); var $div = $("
    "); // 不再加類別 var $p = $("

    ").text("Hi~加入公職王會員!馬上享受各項服務"); var $a = $("") .attr("href", "/register") .addClass("reminders") .attr("title", "立即註冊") .text("立即註冊"); $div.append($p, $a); $(".login-remind").html("").append($img, $div).show(); // 直接在原有 div 內添加內容 } }); });