You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by ni...@apache.org on 2017/12/12 09:18:37 UTC
[40/57] [partial] incubator-servicecomb-website git commit: Generated
the static pages for asf-site
http://git-wip-us.apache.org/repos/asf/incubator-servicecomb-website/blob/08e1b43f/content/cn/docs/jira_beginner_guide/index.html
----------------------------------------------------------------------
diff --git a/content/cn/docs/jira_beginner_guide/index.html b/content/cn/docs/jira_beginner_guide/index.html
new file mode 100644
index 0000000..ed9c307
--- /dev/null
+++ b/content/cn/docs/jira_beginner_guide/index.html
@@ -0,0 +1,789 @@
+<!doctype html>
+<!--
+ Minimal Mistakes Jekyll Theme 4.4.1 by Michael Rose
+ Copyright 2017 Michael Rose - mademistakes.com | @mmistakes
+ Free for personal and commercial use under the MIT license
+ https://github.com/mmistakes/minimal-mistakes/blob/master/LICENSE.txt
+-->
+<html lang="cn" class="no-js">
+ <head>
+ <meta charset="utf-8">
+
+<!-- begin SEO -->
+
+
+
+
+
+
+
+
+
+<title>老司机带你刷任务 - ServiceComb JIRA入门指南 - Apache incubator ServiceComb</title>
+
+
+
+
+<meta name="description" content="ServiceComb JIRA入门指南">
+
+
+
+
+<meta name="author" content="Sean Yin">
+
+<meta property="og:locale" content="cn">
+<meta property="og:site_name" content="Apache incubator ServiceComb">
+<meta property="og:title" content="老司机带你刷任务 - ServiceComb JIRA入门指南">
+
+
+ <link rel="canonical" href="http://github.com/pages/ServiceComb/servicesomb.github.io/cn/docs/jira_beginner_guide/">
+ <meta property="og:url" content="http://github.com/pages/ServiceComb/servicesomb.github.io/cn/docs/jira_beginner_guide/">
+
+
+
+ <meta property="og:description" content="ServiceComb JIRA入门指南">
+
+
+
+ <meta name="twitter:site" content="@ServiceComb">
+ <meta name="twitter:title" content="老司机带你刷任务 - ServiceComb JIRA入门指南">
+ <meta name="twitter:description" content="ServiceComb JIRA入门指南">
+ <meta name="twitter:url" content="">
+
+
+ <meta name="twitter:card" content="summary">
+
+
+
+
+ <meta name="twitter:creator" content="@seanyinx">
+
+
+
+
+
+
+
+
+
+
+
+
+ <meta property="og:type" content="article">
+ <meta property="article:published_time" content="2017-11-16T00:00:00+08:00">
+
+
+
+
+
+
+
+
+ <script type="application/ld+json">
+ {
+ "@context" : "http://schema.org",
+ "@type" : "Person",
+ "name" : "Apache incubator ServiceComb",
+ "url" : "http://github.com/pages/ServiceComb/servicesomb.github.io",
+ "sameAs" : null
+ }
+ </script>
+
+
+
+ <meta name="google-site-verification" content="HvJjNd7vvJ-yjSTHlBiIWEYxp_Hrz-PYEY5Idz9LRcA" />
+
+
+
+
+<!-- end SEO -->
+
+
+<link href="/feed.xml" type="application/atom+xml" rel="alternate" title="Apache incubator ServiceComb Feed">
+
+<!-- http://t.co/dKP3o1e -->
+<meta name="HandheldFriendly" content="True">
+<meta name="MobileOptimized" content="320">
+<meta name="viewport" content="width=device-width, initial-scale=1.0">
+
+<script>
+ document.documentElement.className = document.documentElement.className.replace(/\bno-js\b/g, '') + ' js ';
+</script>
+<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/1.7.1/clipboard.min.js"></script>
+<script src="/assets/js/prism.js"></script>
+
+<script type="text/javascript" async
+ src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-MML-AM_CHTML">
+</script>
+
+<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css" integrity="sha384-/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M" crossorigin="anonymous">
+
+<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
+<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js" integrity="sha384-b/U6ypiBEHpOf/4+1nzFpr53nxSS+GLCkfwBdFNTxtclqqenISfwAzpKaMNFNmj4" crossorigin="anonymous"></script>
+<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js" integrity="sha384-h0AbiXch4ZDo7tp9hKZ4TsHbi047NrKGLO3SEJAg45jXxnGIfYzk4Si90RDIqNm1" crossorigin="anonymous"></script>
+<!-- For all browsers -->
+<link rel="stylesheet" href="/assets/css/main.css">
+<link rel="stylesheet" href="/assets/css/prism.css">
+
+<!--[if lte IE 9]>
+ <style>
+ /* old IE unsupported flexbox fixes */
+ .greedy-nav .site-title {
+ padding-right: 3em;
+ }
+ .greedy-nav button {
+ position: absolute;
+ top: 0;
+ right: 0;
+ height: 100%;
+ }
+ </style>
+<![endif]-->
+
+<meta http-equiv="cleartype" content="on">
+
+ <!-- start custom head snippets -->
+
+<!-- insert favicons. use http://realfavicongenerator.net/ -->
+<link href="https://fonts.cat.net/css?family=Roboto:400,500,700|Source+Code+Pro" rel="stylesheet">
+<script src="/assets/js/custom.js"></script>
+<!-- end custom head snippets -->
+
+ </head>
+
+ <body class="layout--single">
+
+ <!--[if lt IE 9]>
+<div class="notice--danger align-center" style="margin: 0;">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</div>
+<![endif]-->
+ <div class="masthead">
+ <div class="masthead__inner-wrap">
+ <div class="masthead__menu">
+ <nav id="site-nav" class="greedy-nav">
+
+ <a class="site-title active" href="/cn"><img src="//assets/images/ServiceComb-logo-1.png"></a>
+
+ <ul class="visible-links">
+
+
+ <li class="masthead__menu-item">
+
+
+
+ <a href="/cn/docs/quick-start/">快速入门</a>
+
+ </li>
+
+
+ <li class="masthead__menu-item">
+
+
+
+ <a href="/cn/users/">用户手册</a>
+
+ </li>
+
+
+ <li class="masthead__menu-item">
+
+
+
+ <a href="/cn/developers/">开发者手册</a>
+
+ </li>
+
+
+ <li class="masthead__menu-item">
+
+
+
+ <a href="/cn/year-archive/">博文</a>
+
+ </li>
+
+
+ <li class="masthead__menu-item">
+
+
+
+ <a href="/cn/faqs/">常见问题</a>
+
+ </li>
+
+ </ul>
+ <button><div class="navicon"></div></button>
+ <ul class="hidden-links hidden"></ul>
+ <div class="nav-lang">
+
+
+
+ <a href=/docs/jira_beginner_guide/>English</a>
+
+ </div>
+ </nav>
+ </div>
+ </div>
+</div>
+
+
+
+
+
+
+<div id="main" role="main">
+
+ <div class="sidebar sticky">
+
+ <div class="back-to-home">首页 > <a href="/cn/">ServiceComb</a></div>
+
+
+
+<div itemscope itemtype="http://schema.org/Person">
+
+
+
+ <div class="author__content">
+ <h3 class="author__name" itemprop="name">Sean Yin</h3>
+
+ <p class="author__bio" itemprop="description">
+
+
+ Nothing but speed is indestructible
+
+
+ </p>
+
+ </div>
+
+ <div class="author__urls-wrapper">
+ <button class="btn btn--inverse">关注</button>
+ <ul class="author__urls social-icons">
+
+
+
+ <li>
+ <a href="http://seanyinx.github.io" itemprop="url">
+ <i class="fa fa-fw fa-chain" aria-hidden="true"></i> 网站
+ </a>
+ </li>
+
+
+
+ <li>
+ <a href="mailto:seanyinx@gmail.com">
+ <meta itemprop="email" content="seanyinx@gmail.com" />
+ <i class="fa fa-fw fa-envelope-square" aria-hidden="true"></i> 电子邮箱
+ </a>
+ </li>
+
+
+
+
+
+ <li>
+ <a href="https://twitter.com/seanyinx" itemprop="sameAs">
+ <i class="fa fa-fw fa-twitter-square" aria-hidden="true"></i> Twitter
+ </a>
+ </li>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <!--
+ <li>
+ <a href="http://link-to-whatever-social-network.com/user/" itemprop="sameAs">
+ <i class="fa fa-fw" aria-hidden="true"></i> Custom Social Profile Link
+ </a>
+ </li>
+-->
+ </ul>
+ </div>
+</div>
+
+
+ </div>
+
+
+
+ <article class="page" itemscope itemtype="http://schema.org/CreativeWork">
+ <meta itemprop="headline" content="老司机带你刷任务 - ServiceComb JIRA入门指南">
+ <meta itemprop="description" content="ServiceComb JIRA入门指南">
+ <meta itemprop="datePublished" content="November 16, 2017">
+ <meta itemprop="dateModified" content="November 16, 2017">
+
+ <div class="page__inner-wrap">
+
+
+ <header>
+ <h1 class="page__title" itemprop="headline">老司机带你刷任务 - ServiceComb JIRA入门指南
+</h1>
+
+ <p class="page__meta"><i class="fa fa-clock-o" aria-hidden="true"></i>
+
+
+
+
+ 少于 1 分钟 阅读
+
+</p>
+
+ </header>
+
+
+
+ <section class="page__content" itemprop="text">
+ <p>想参与社区贡献,却感觉老虎咬天,无从下口?不用担心,老司机带你一起刷新手任务!</p>
+
+<p>ServiceComb的所有任务托管在<a href="https://servicecomb.atlassian.net">ServiceComb JIRA</a>上,
+首先你需要<a href="https://id.atlassian.com/signup?continue=https%3A%2F%2Fservicecomb.atlassian.net%2Flogin%3FredirectCount%3D1">注册</a>一个免费JIRA账户。</p>
+
+<p><img src="/assets/images/jira/jira.signup.png" alt="jira sign up" class="align-center" /></p>
+
+<p>登陆后请首先花几分钟上传自己的个性头像,让大家可以一眼看出哪些任务在你的掌控之下。</p>
+
+<p><img src="/assets/images/jira/jira.board.profile.png" alt="jira profile" class="align-center" /></p>
+
+<p>接下来在菜单栏点击Boards,选择ServiceComb转到如下Kanban board。</p>
+
+<p><img src="/assets/images/jira/jira.board.selection.png" alt="jira board selection" class="align-center" /></p>
+
+<p>ServiceComb Kanban board页面分为三列:</p>
+<ul>
+ <li>To Do:还未开始的任务</li>
+ <li>In Progress:进行中的任务</li>
+ <li>Done:已完成的任务</li>
+</ul>
+
+<p><img src="/assets/images/jira/jira.board.png" alt="jira board" class="align-center" /></p>
+
+<p>To Do列的任务卡上如果没有头像,代表这个任务无人领取,但作为新手,我怎么知道哪个任务容易上手呢?
+我们很细心的为新手任务加上了绿色竖线标记,这个标记对应所有打了 <code class="highlighter-rouge">good-first-issue</code> 标签的任务,
+以便大家一眼识别,立即上手。</p>
+
+<p><img src="/assets/images/jira/jira.good.first.issue.png" alt="jira good first issue" class="align-center" /></p>
+
+<p><img src="/assets/images/jira/jira.story.png" alt="jira story" class="align-center" /></p>
+
+<p>另外,任务还按照功能模块划分了epic,这样大家可以在自己擅长的领域大显身手,或者在全新的模块挑战自己。</p>
+
+<p><img src="/assets/images/jira/jira.epic.png" alt="jira epic" class="align-center" /></p>
+
+<p>选到心仪的任务后,记得讲任务分配给自己,以免被别人抢走。</p>
+
+<p><img src="/assets/images/jira/jira.story.assignment.png" alt="jira story assignment" class="align-center" /></p>
+
+<p>另外别忘了根据自己的进度,更新对应任务的状态,你可以直接拖动任务卡到对应状态列。</p>
+
+<p><img src="/assets/images/jira/jira.status.update.png" alt="jira status update" class="align-center" /></p>
+
+<p>最后,在完成任务后,咨询项目带队老司机,将自己的贡献添加到对应的发布版本中。</p>
+
+<p><img src="/assets/images/jira/jira.fix.version.png" alt="jira fix.version" class="align-center" /></p>
+
+<p>看到现在相信你已经跃跃欲试,赶紧加入我们一起刷任务升级吧!</p>
+
+
+ </section>
+
+ <footer class="page__meta">
+
+
+
+
+
+
+
+ <p class="page__date"><strong><i class="fa fa-fw fa-calendar" aria-hidden="true"></i> 最新的:</strong> <time datetime="2017-11-16">2017年11月16日</time></p>
+
+
+
+ </footer>
+
+ <section class="page__share">
+
+ <h4 class="page__share-title">分享</h4>
+
+
+ <a href="https://twitter.com/intent/tweet?via=ServiceComb&text=老司机带你刷任务 - ServiceComb JIRA入门指南 /cn/docs/jira_beginner_guide/" class="btn btn--twitter" title="分享 Twitter"><i class="fa fa-fw fa-twitter" aria-hidden="true"></i><span> Twitter</span></a>
+
+ <a href="https://www.facebook.com/sharer/sharer.php?u=/cn/docs/jira_beginner_guide/" class="btn btn--facebook" title="分享 Facebook"><i class="fa fa-fw fa-facebook" aria-hidden="true"></i><span> Facebook</span></a>
+
+ <a href="https://plus.google.com/share?url=/cn/docs/jira_beginner_guide/" class="btn btn--google-plus" title="分享 Google Plus"><i class="fa fa-fw fa-google-plus" aria-hidden="true"></i><span> Google+</span></a>
+
+ <a href="https://www.linkedin.com/shareArticle?mini=true&url=/cn/docs/jira_beginner_guide/" class="btn btn--linkedin" title="分享 LinkedIn"><i class="fa fa-fw fa-linkedin" aria-hidden="true"></i><span> LinkedIn</span></a>
+</section>
+
+
+
+ <nav class="pagination">
+
+ <a href="/docs/service-center-ui/" class="pagination--pager" title="Service-Center Management UI Console
+">向前</a>
+
+
+ <a href="#" class="pagination--pager disabled">向后</a>
+
+ </nav>
+
+
+ </div>
+
+
+ <div class="page__comments">
+
+
+ <section id="static-comments">
+
+ <!-- Start static comments -->
+ <div class="js-comments">
+
+ </div>
+ <!-- End static comments -->
+
+ <!-- Start new comment form -->
+ <h4 class="page__comments-title">留下评论</h4>
+ <p class="small">您的电子邮箱地址并不会被展示。请填写标记为必须的字段。 <span class="required">*</span></p>
+ <form id="new_comment" class="page__comments-form js-form form" method="post" action="https://api.staticman.net/v1/entry/ServiceComb/servicesomb.github.io/master">
+ <div class="form__spinner">
+ <i class="fa fa-spinner fa-spin fa-3x fa-fw"></i>
+ <span class="sr-only">正在加载...</span>
+ </div>
+
+ <fieldset>
+ <label for="comment-form-message">评论 <small class="required">*</small></label>
+ <textarea type="text" rows="3" id="comment-form-message" name="fields[message]" tabindex="1"></textarea>
+ <div class="small help-block"><a href="https://daringfireball.net/projects/markdown/">Markdown语法已支持。</a></div>
+ </fieldset>
+ <fieldset>
+ <label for="comment-form-name">姓名 <small class="required">*</small></label>
+ <input type="text" id="comment-form-name" name="fields[name]" tabindex="2" />
+ </fieldset>
+ <fieldset>
+ <label for="comment-form-email">电子邮箱 <small class="required">*</small></label>
+ <input type="email" id="comment-form-email" name="fields[email]" tabindex="3" />
+ </fieldset>
+ <fieldset>
+ <label for="comment-form-url">网站(可选)</label>
+ <input type="url" id="comment-form-url" name="fields[url]" tabindex="4"/>
+ </fieldset>
+ <fieldset class="hidden" style="display: none;">
+ <input type="hidden" name="options[slug]" value="jira-beginner-guide">
+ <label for="comment-form-location">Not used. Leave blank if you are a human.</label>
+ <input type="text" id="comment-form-location" name="fields[hidden]" autocomplete="off"/>
+ </fieldset>
+ <!-- Start comment form alert messaging -->
+ <p class="hidden js-notice">
+ <strong class="js-notice-text"></strong>
+ </p>
+ <!-- End comment form alert messaging -->
+ <fieldset>
+ <button type="submit" id="comment-form-submit" tabindex="5" class="btn btn--large">提交评论</button>
+ </fieldset>
+ </form>
+ <!-- End new comment form -->
+
+ </section>
+
+</div>
+
+
+ </article>
+
+
+
+ <div class="page__related">
+ <h4 class="page__related-title">猜您还喜欢</h4>
+ <div class="grid__wrapper">
+
+
+
+
+
+<div class="grid__item">
+ <article class="archive__item" itemscope itemtype="http://schema.org/CreativeWork">
+
+ <h2 class="archive__item-title" itemprop="headline">
+
+ <a href="/docs/service-center-ui/" rel="permalink">Service-Center Management UI Console
+</a>
+
+ </h2>
+ <p class="archive__item-excerpt" itemprop="description">An introduction Service-Center Management Console
+</p>
+
+ <p class="page__meta"><i class="fa fa-clock-o" aria-hidden="true"></i>
+
+
+
+
+ 2 分钟 阅读
+
+</p>
+
+ </article>
+</div>
+
+
+
+
+
+
+<div class="grid__item">
+ <article class="archive__item" itemscope itemtype="http://schema.org/CreativeWork">
+
+ <h2 class="archive__item-title" itemprop="headline">
+
+ <a href="/docs/service-center-ui/" rel="permalink">Service-Center Management UI Console
+</a>
+
+ </h2>
+ <p class="archive__item-excerpt" itemprop="description">An introduction Service-Center Management Console
+</p>
+
+ <p class="page__meta"><i class="fa fa-clock-o" aria-hidden="true"></i>
+
+
+
+
+ 2 分钟 阅读
+
+</p>
+
+ </article>
+</div>
+
+
+
+
+
+
+<div class="grid__item">
+ <article class="archive__item" itemscope itemtype="http://schema.org/CreativeWork">
+
+ <h2 class="archive__item-title" itemprop="headline">
+
+ <a href="/cn/docs/how-to-reform-a-legacy-system/" rel="permalink">最头疼的遗留系统该如何改造?
+</a>
+
+ </h2>
+ <p class="archive__item-excerpt" itemprop="description">微服务是否是业界期待已久的企业架构解决方案?在对遗留系统进行微服务的改造过程中存在怎样的困难和挑战,应该注意些什么?
+</p>
+
+ <p class="page__meta"><i class="fa fa-clock-o" aria-hidden="true"></i>
+
+
+
+
+ 少于 1 分钟 阅读
+
+</p>
+
+ </article>
+</div>
+
+
+
+
+
+
+<div class="grid__item">
+ <article class="archive__item" itemscope itemtype="http://schema.org/CreativeWork">
+
+ <h2 class="archive__item-title" itemprop="headline">
+
+ <a href="/docs/how-to-reform-a-legacy-system/" rel="permalink">最头疼的遗留系统该如何改造?
+</a>
+
+ </h2>
+ <p class="archive__item-excerpt" itemprop="description">微服务是否是业界期待已久的企业架构解决方案?在对遗留系统进行微服务的改造过程中存在怎样的困难和挑战,应该注意些什么?
+</p>
+
+ <p class="page__meta"><i class="fa fa-clock-o" aria-hidden="true"></i>
+
+
+
+
+ 少于 1 分钟 阅读
+
+</p>
+
+ </article>
+</div>
+
+
+ </div>
+ </div>
+
+</div>
+
+
+ <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
+ <div align="center" style="margin: 0 0;">
+ <ins class="adsbygoogle"
+ style="display:block; border-bottom: initial;"
+ data-ad-client="ca-pub-7328585512091257"
+ data-ad-slot="3049671934"
+ data-ad-format="auto"></ins>
+ </div>
+
+ <div class="page__footer">
+ <footer>
+ <!-- start custom footer snippets -->
+
+<!-- end custom footer snippets -->
+ <div class="container">
+ <div class="row justify-content-md-center">
+
+ <div class="col">
+ <ul>
+ <p class="header">资源</p>
+ <li><a href="/cn/docs/quick-start/">快速入门</a></li>
+ <li><a href="/cn/users/user-guide/">用户指南</a></li>
+ <li><a href="/cn/slides/">资料</a></li>
+ <li><a href="/cn/users/faq/">常见问题</a></li>
+ </ul>
+ </div>
+ <div class="col">
+ <ul>
+ <p class="header">贡献</p>
+ <li><a href="https://github.com/ServiceComb/ServiceComb.github.io/issues/new?title=Issue with _posts/cn/2017-11-16-jira-beginner-guide.md">报告本网页问题</a></li>
+ <li><a href="https://github.com/ServiceComb/ServiceComb.github.io/edit/master/_posts/cn/2017-11-16-jira-beginner-guide.md">在Github上编辑此页</a></li>
+ <li><a href="/cn/developers/submit-codes/">代码提交指南</a></li>
+ </ul>
+ </div>
+ <div class="col">
+ <ul class="social-icons">
+ <p class="header">社区</p>
+ <li>
+ <a href="https://groups.google.com/forum/#!forum/servicecomb-developers" target="_blank"><span class="group">开发者</span></a> |
+ <a href="https://groups.google.com/forum/#!forum/servicecomb-users" target="_blank">用户</span></a>
+ </li>
+ <li>
+ <a href="http://github.com/ServiceComb" target="_blank"><span class="github">Github</span></a>
+ </li>
+ <li>
+ <a href="https://twitter.com/ServiceComb" target="_blank"><span class="twitter">Twitter</span></a>
+ </li>
+ <li>
+ <a href="/feed.xml" target="_blank"><span class="rss">Feed</span></a>
+ </li>
+ </ul>
+ </div>
+ </div>
+</div>
+<div class="page__footer-bottom">
+ <div>© 2017 Apache incubator ServiceComb. 技术来自于 <a href="http://jekyllrb.com" rel="nofollow">Jekyll</a> & <a href="https://mademistakes.com/work/minimal-mistakes-jekyll-theme/" rel="nofollow">Minimal Mistakes</a>.</div>
+</div>
+
+ </footer>
+ </div>
+
+ <script src="/assets/js/main.min.js"></script>
+
+
+
+
+ <script>
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
+ })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
+
+ ga('create', 'UA-101622733-1', 'auto');
+ ga('send', 'pageview');
+</script>
+
+
+
+
+
+
+
+
+ <script>
+ (function ($) {
+ var $comments = $('.js-comments');
+
+ $('#new_comment').submit(function () {
+ var form = this;
+
+ $(form).addClass('disabled');
+ $('#comment-form-submit').html('<i class="fa fa-spinner fa-spin fa-fw"></i> 正在加载...');
+
+ $.ajax({
+ type: $(this).attr('method'),
+ url: $(this).attr('action'),
+ data: $(this).serialize(),
+ contentType: 'application/x-www-form-urlencoded',
+ success: function (data) {
+ $('#comment-form-submit').html('已提交');
+ $('.page__comments-form .js-notice').removeClass('notice--danger');
+ $('.page__comments-form .js-notice').addClass('notice--success');
+ showAlert('感谢您的评论!被批准后它会立即在此站点展示。');
+ },
+ error: function (err) {
+ console.log(err);
+ $('#comment-form-submit').html('提交评论');
+ $('.page__comments-form .js-notice').removeClass('notice--success');
+ $('.page__comments-form .js-notice').addClass('notice--danger');
+ showAlert('很抱歉,您的提交存在错误。请确保所有必填字段都已填写正确,然后再试一次。');
+ $(form).removeClass('disabled');
+ }
+ });
+
+ return false;
+ });
+
+ function showAlert(message) {
+ $('.page__comments-form .js-notice').removeClass('hidden');
+ $('.page__comments-form .js-notice-text').html(message);
+ }
+ })(jQuery);
+ </script>
+
+
+
+
+
+
+
+ </body>
+</html>