基于Java的Web应用开发规范.docx

上传人:b****2 文档编号:551827 上传时间:2023-04-29 格式:DOCX 页数:11 大小:21.78KB
下载 相关 举报
基于Java的Web应用开发规范.docx_第1页
第1页 / 共11页
基于Java的Web应用开发规范.docx_第2页
第2页 / 共11页
基于Java的Web应用开发规范.docx_第3页
第3页 / 共11页
基于Java的Web应用开发规范.docx_第4页
第4页 / 共11页
基于Java的Web应用开发规范.docx_第5页
第5页 / 共11页
基于Java的Web应用开发规范.docx_第6页
第6页 / 共11页
基于Java的Web应用开发规范.docx_第7页
第7页 / 共11页
基于Java的Web应用开发规范.docx_第8页
第8页 / 共11页
基于Java的Web应用开发规范.docx_第9页
第9页 / 共11页
基于Java的Web应用开发规范.docx_第10页
第10页 / 共11页
基于Java的Web应用开发规范.docx_第11页
第11页 / 共11页
亲,该文档总共11页,全部预览完了,如果喜欢就下载吧!
下载资源
资源描述

基于Java的Web应用开发规范.docx

《基于Java的Web应用开发规范.docx》由会员分享,可在线阅读,更多相关《基于Java的Web应用开发规范.docx(11页珍藏版)》请在冰点文库上搜索。

基于Java的Web应用开发规范.docx

基于Java的Web应用开发规范

-

基于Java的Web应用开发规范

 

 1前言

 为了使软件开发过程有章可循,保证软件质量,加强开发管理。

2开发管理

 项目进度周报表格如下:

 项目编号:

 汇报人:

 汇报日期:

 项目进度详细描述:

 其他问题:

3项目周期

 司项目开发周期分为以下几个步骤:

 步骤说明参与角色生成文档或程序(打*号为可选)

 可行性分析对项目的技术,功能需求和市场进行调研和初步分析,确定是否需要立项开发。

部门主管核心技术员可行性分析报告*技术调研报告*立项正式立项,由部门主管指定项目经理,项目经理制定初步计划。

初步计划包括设计和开发时间的初步估算。

部门主管核心技术员项目初步计划需求分析对项目进行详细的需求分析,编写需求分析文档。

对于B/S结构软件系统需要制作静态演示页面。

需求分析文档和静态演示页面需要通过部门主管审批才能够进行到下一个步骤项目经理项目核心小组需求分析文档静态演示页面项目计划修订版本详细设计根据需求分析对项目进行详细设计。

详细设计以后,项目经理同部门主管一起指定项目小组开发成员。

项目经理项目核心小组详细设计文档项目计划确定版本开发根据设计开发项目,由美工对操作界面进行美化。

项目经理项目开发员美工项目计划修订版本*测试项目经理提交测试申请,由测试部门对项目进行测试。

项目小组配合测试部门修改软件中的错误。

项目经理项目开发员测试部测试申请测试计划测试报告项目验收项目验收归档部门主管项目经理项目所有文档和程序

4命名规范

 4.1项目编号命名规范

 待完善

4.2文档命名规范

 待完善

4.3jsp/html命名规范

 jsp与html文件名全部小写,并遵循如下的规范:

数据/内容显示页

 名词,多个单词用下划线分隔,要求能说明显示内容的信息,为避免冲突,可加上“_list”。

例如:

new_message.html或my_file_list.jsp

操作处理页

 命名格式:

名词_下划线_动词,例如:

file_delete.jsp。

含frame页面

 中的name属性命名的格式是①xxx._②xxx_③xxx

 ①xxx部分用来标识当前页面隶属于整个系统中的哪一功能模块。

 如:

属于ebwebmail则被表示为ebwebmail,其它情况依次类推。

 ②xxx部分标识当前页面所要完成的功能。

 如:

完成用户登录的功能则被标识为login,其它情况依次类推。

 ③xxx部分用来用来表示页面在浏览器窗口所处的位置。

 处于浏览器窗口的顶部则标识为top,其它情况依次类推。

 例如:

ebwebmail_inbox_top.jsp

src属性相应的文件名根据情况建议在原命名规范上用下划线加上所处窗口的位置。

javascript脚本方法

 脚本函数都以①xxx_②xxx的方式命名。

 ①xxx对应页面隶属的模块。

 ②xxx表示函数所要实现的功能(动宾结构),多个单词用下划线连接。

 例如:

ebwebmail_send_mail()

模块通用的脚本函数必须集合于一个js文件中,在页面上通过形式导入。

js文件名命名使用模块名,例如:

ebwebmail.js。

如果项目已经提供了公共js脚本,则优先使用公共js脚本中提供的函数。

所有定义方法的

 

注意:

必须指定一个有意义的,严禁出现“Untitled”或“未命名”之类的<title>。</p><p>2.所有html标签使用小写</p><p>3.html页面一般需要设置一个背景色(一般是#FFFFFF)。</p><p>html语法校验</p><p> 所有的jsp/html页面需要能够使用DreamWeaver正确打开(即html语法正确,没有错误的标记)。</p><p>注释</p><p> 一般不使用html注释,除非是有必要让最终用户看到的内容。</p><p>对于包含JSP代码的html块,必须使用JSP注释。</p><p>对于没有必要的注释,在发行版本中必须移除。</p><p>form属于域的maxlength</p><p> 对于text类型的输入域,必须根据数据库字段的长度设置相应的maxlength,例如数据库类型是VARCHAR(64),那么maxlength是32(因为中文浏览器对于中文也认为是一个字符)。</p><p>6.3其他规范</p><p> 对于IDE的使用</p><p> 目前暂不限制开发工具的使用,但是最后提交的代码必须不依赖任何IDE,而需要可以使用ant完成所有的编译工作。</p><p>一般提交的代码目录格式如下:</p><p>|_dist(存放输出的文件class文件)</p><p> |_lib(使用的库)</p><p> |_src(源代码)</p><p> |_docs(文档)</p><p> |_wwwroot(页面文件)</p><p> |_build.xml(ant的build文件)</p><p> |_changes.log(代码版本和修改的日志)</p><p>限制session的使用</p><p> 在代码中使用session需要听取项目经理的意见,项目经理需要在设计文档中登记项目中所有使用到的session的名字和作用。</p><p>限制外部包的使用</p><p> 开发员如果需要使用一个外部包需要听取项目经理的意见。</p><p>在项目经理批准以前,严禁擅自使用一个外部的包。</p><p></p> </div> <div class="readmore" onclick="showmore()" style="background-color:transparent; height:auto; margin:0px 0px; padding:20px 0px 0px 0px;"><span class="btn-readmore" style="background-color:transparent;"><em style=" font-style:normal">展开</em>阅读全文<i></i></span></div> <script> function showmore() { $(".readmore").hide(); $(".detail-article").css({ "height":"auto", "overflow": "hidden" }); } $(document).ready(function() { var dh = $(".detail-article").height(); if(dh >100) { $(".detail-article").css({ "height":"100px", "overflow": "hidden" }); } else { $(".readmore").hide(); } }); </script> </div> <script> var defaultShowPage = parseInt("20"); var id = "551827"; var total_page = "11"; var mfull = false; var mshow = false; function DownLoad() { window.location.href='https://m.bingdoc.com/d-551827.html'; } function relate() { var reltop = $('#relate').offset().top-50; $("html,body").animate({ scrollTop: reltop }, 500); } </script> <div id="relate" class="container" style="padding:0px 0px 15px 0px; margin-top:20px; border:solid 1px #dceef8"> <div style=" font-size: 16px; background-color:#e5f0f7; margin-bottom:5px; font-weight: bold; text-indent:10px; line-height: 40px; height:40px; padding-bottom: 0px;">相关资源</div> <div id="relatelist" style="padding-left:5px;"> <ul> <li><em class="docx"/></em><a target="_parent" href="https://m.bingdoc.com/p-594818.html" title="《Java Web开发技术》教学大纲.docx">《Java Web开发技术》教学大纲.docx</a> </li><li><em class="ppt"/></em><a target="_parent" href="https://m.bingdoc.com/p-8246506.html" title="Web开发技术(java)课程简介.ppt">Web开发技术(java)课程简介.ppt</a> </li><li><em class="ppt"/></em><a target="_parent" href="https://m.bingdoc.com/p-8694280.html" title="Web开发技术(java)课程简介优质PPT.ppt">Web开发技术(java)课程简介优质PPT.ppt</a> </li><li><em class="docx"/></em><a target="_parent" href="https://m.bingdoc.com/p-838442.html" title="《Java Web开发技术》教学大纲Word文档格式.docx">《Java Web开发技术》教学大纲Word文档格式.docx</a> </li><li><em class="docx"/></em><a target="_parent" href="https://m.bingdoc.com/p-9421658.html" title="java web开发规范.docx">java web开发规范.docx</a> </li><li><em class="docx"/></em><a target="_parent" href="https://m.bingdoc.com/p-2833666.html" title="308#Web开发技术.docx">308#Web开发技术.docx</a> </li><li><em class="docx"/></em><a target="_parent" href="https://m.bingdoc.com/p-3939478.html" title="《基于Java技术的Web应用开发》实验指导书.docx">《基于Java技术的Web应用开发》实验指导书.docx</a> </li><li><em class="docx"/></em><a target="_parent" href="https://m.bingdoc.com/p-16269821.html" title="Web技术开发文档.docx">Web技术开发文档.docx</a> </li><li><em class="docx"/></em><a target="_parent" href="https://m.bingdoc.com/p-16061102.html" title="基于java技术的web应用开发选择题及答案.docx">基于java技术的web应用开发选择题及答案.docx</a> </li><li><em class="docx"/></em><a target="_parent" href="https://m.bingdoc.com/p-11708459.html" title="java web 开发学习报告.docx">java web 开发学习报告.docx</a> </li> </ul> </div> </div> <div class="container" style="padding:0px 0px 15px 0px; margin-top:20px; border:solid 1px #dceef8"> <div style=" font-size: 16px; background-color:#e5f0f7; margin-bottom:5px; font-weight: bold; text-indent:10px; line-height: 40px; height:40px; padding-bottom: 0px;">猜你喜欢</div> <div id="relatelist" style="padding-left:5px;"> <ul> <li><em class="docx"></em> <a href="https://m.bingdoc.com/p-302483.html" target="_parent" title="自然科学类学术期刊版福建师范大学外国.docx">自然科学类学术期刊版福建师范大学外国.docx</a></li> <li><em class="docx"></em> <a href="https://m.bingdoc.com/p-302484.html" target="_parent" title="综采面检修措施.docx">综采面检修措施.docx</a></li> <li><em class="docx"></em> <a href="https://m.bingdoc.com/p-302485.html" target="_parent" title="总图设计.docx">总图设计.docx</a></li> <li><em class="docx"></em> <a href="https://m.bingdoc.com/p-302486.html" target="_parent" title="串联和并联基础巩固练习.docx">串联和并联基础巩固练习.docx</a></li> <li><em class="docx"></em> <a href="https://m.bingdoc.com/p-302487.html" target="_parent" title="组织胚胎学实验报告.docx">组织胚胎学实验报告.docx</a></li> <li><em class="docx"></em> <a href="https://m.bingdoc.com/p-302488.html" target="_parent" title="从教会法律的角度略述教友的权利和义务.docx">从教会法律的角度略述教友的权利和义务.docx</a></li> <li><em class="docx"></em> <a href="https://m.bingdoc.com/p-302489.html" target="_parent" title="最新SAP通用及本地角色创建操作手册资料.docx">最新SAP通用及本地角色创建操作手册资料.docx</a></li> <li><em class="docx"></em> <a href="https://m.bingdoc.com/p-302490.html" target="_parent" title="大学生认识实习报告范文.docx">大学生认识实习报告范文.docx</a></li> <li><em class="docx"></em> <a href="https://m.bingdoc.com/p-302491.html" target="_parent" title="大学体育理论考试试题汇总推荐文档.docx">大学体育理论考试试题汇总推荐文档.docx</a></li> </ul> </div> </div> <div style=" font-size: 16px; background-color:#e5f0f7; margin-top:20px; font-weight: bold; text-indent:10px; line-height: 40px; height:40px; padding-bottom: 0px; margin-bottom:10px;"> 相关搜索</div> <div class="widget-box pt0" style="border: none; padding:0px 5px;"> <ul class="taglist--inline multi"> <li class="tagPopup"><a target="_parent" class="tag tagsearch" rel="nofollow" href="https://m.bingdoc.com/search.html?q=%e5%9f%ba%e4%ba%8e">基于</a></li> <li class="tagPopup"><a target="_parent" class="tag tagsearch" rel="nofollow" href="https://m.bingdoc.com/search.html?q=Java">Java</a></li> <li class="tagPopup"><a target="_parent" class="tag tagsearch" rel="nofollow" href="https://m.bingdoc.com/search.html?q=Web">Web</a></li> <li class="tagPopup"><a target="_parent" class="tag tagsearch" rel="nofollow" href="https://m.bingdoc.com/search.html?q=%e5%ba%94%e7%94%a8">应用</a></li> <li class="tagPopup"><a target="_parent" class="tag tagsearch" rel="nofollow" href="https://m.bingdoc.com/search.html?q=%e5%bc%80%e5%8f%91">开发</a></li> <li class="tagPopup"><a target="_parent" class="tag tagsearch" rel="nofollow" href="https://m.bingdoc.com/search.html?q=%e8%a7%84%e8%8c%83">规范</a></li> </ul> </div> <div style=" font-size: 16px; background-color:#e5f0f7; font-weight: bold; text-indent:10px; line-height: 40px; height:40px; padding-bottom: 0px; margin-bottom:10px;"> 资源标签</div> <div class="widget-box pt0" style="border: none; padding:0px 5px;"> <ul class="taglist--inline multi"> <li class="tagPopup"><a class="tag tag0" href="https://m.bingdoc.com/mark/webkaifajishujava.html" >Web开发技术java</a></li><li class="tagPopup"><a class="tag tag1" href="https://m.bingdoc.com/mark/webyingyongyukaifawebyingyongkaifa.html" >WEB应用与开发WEB应用开发</a></li><li class="tagPopup"><a class="tag tag2" href="https://m.bingdoc.com/mark/javakaifaguifanfangan.html" >Java开发规范方案</a></li><li class="tagPopup"><a class="tag tag3" href="https://m.bingdoc.com/mark/jiyuwebqiyeyingyong.html" >基于Web企业应用</a></li><li class="tagPopup"><a class="tag tag4" href="https://m.bingdoc.com/mark/webyingyongkaifawebyingyongkaifa.html" >Web应用开发Web应用开发</a></li><li class="tagPopup"><a class="tag tag0" href="https://m.bingdoc.com/mark/jiyuwebfuwuyingyong.html" >基于web服务应用</a></li><li class="tagPopup"><a class="tag tag1" href="https://m.bingdoc.com/mark/javazhuomianyingyongkaifa.html" >java桌面应用开发</a></li><li class="tagPopup"><a class="tag tag2" href="https://m.bingdoc.com/mark/javayingyong.html" >java应用</a></li><li class="tagPopup"><a class="tag tag3" href="https://m.bingdoc.com/mark/jiyurevityingyong.html" >基于Revit应用</a></li><li class="tagPopup"><a class="tag tag4" href="https://m.bingdoc.com/mark/jiyuwebtongyongbbs.html" >基于WEB通用BBS</a></li><li class="tagPopup"><a class="tag tag0" href="https://m.bingdoc.com/mark/robocodeibmkaifadejava.html" >RobocodeIBM开发的Java</a></li><li class="tagPopup"><a class="tag tag1" href="https://m.bingdoc.com/mark/jiyunetwebyingyong.html" >基于netweb应用</a></li><li class="tagPopup"><a class="tag tag2" href="https://m.bingdoc.com/mark/kaifaguifanjava.html" >开发规范java</a></li><li class="tagPopup"><a class="tag tag3" href="https://m.bingdoc.com/mark/androidkaifaguifanyuyingyongkaifaguifan.html" >Android开发规范与应用开发规范</a></li><li class="tagPopup"><a class="tag tag4" href="https://m.bingdoc.com/mark/jiyujavajishudewebyingyongkaifajiyujavajishu.html" >基于Java技术的Web应用开发基于Java技术</a></li><li class="tagPopup"><a class="tag tag0" href="https://m.bingdoc.com/mark/jiyuarmwincekaifa.html" >基于ARMWINCE开发</a></li> <li class="tagPopup"><a target="_parent" class="tag tag1" href="https://m.bingdoc.com/mark/webjishudagong17web.html">Web技术大工17Web</a></li> <li class="tagPopup"><a target="_parent" class="tag tag2" href="https://m.bingdoc.com/mark/webjishudagong18web.html">Web技术大工18Web</a></li> <li class="tagPopup"><a target="_parent" class="tag tag3" href="https://m.bingdoc.com/mark/javajishuyouxikaifa.html">java技术游戏开发</a></li> <li class="tagPopup"><a target="_parent" class="tag tag4" href="https://m.bingdoc.com/mark/dongtaiwebkaifajishu.html">动态web开发技术</a></li> <li class="tagPopup"><a target="_parent" class="tag tag0" href="https://m.bingdoc.com/mark/javajishuqiujijavajishu.html">Java技术秋季Java技术</a></li> <li class="tagPopup"><a target="_parent" class="tag tag1" href="https://m.bingdoc.com/mark/javajishuqiujijavajishu.html">Java技术秋季Java技术</a></li> <li class="tagPopup"><a target="_parent" class="tag tag2" href="https://m.bingdoc.com/mark/webkaifajishushijian.html">WEB开发技术实践</a></li> <li class="tagPopup"><a target="_parent" class="tag tag3" href="https://m.bingdoc.com/mark/webjishudagong14web.html">Web技术大工14Web</a></li> <li class="tagPopup"><a target="_parent" class="tag tag4" href="https://m.bingdoc.com/mark/webjishudagong18web.html">Web技术大工18Web</a></li> </ul> </div> <br /> <div > 当前位置:<a target="_parent" href="https://m.bingdoc.com/">首页</a> > <a href="https://m.bingdoc.com/booklist-00010.html">解决方案</a><span> > </span><a href="https://m.bingdoc.com/booklist-0001000001.html">学习计划</a> </div> <br /> <div class="cssnone"> <iframe title="来源" src="https://m.bingdoc.com/BookRead.aspx?id=LnrlliFvk2c%3d&parto=1AKPVdtuJBhRSLWgcyXgYXulYlnPhT0Ta1GEAqWT2aoOlr4wf77DjDpjZA6YCK244MNDTRMpf1N8Hc4hfaDcnAN8Gjpg2675MCCE6n6jhKCbICqXSvt49usb9lDcADS5WAGkm1odYWtbdkPDH6x2WTIBC7kAVLbNEkC31GUT8ikQJWIacCHrSn55yHsaIOOsAdovUi%2bQePzXZ%2bi87yVGZo%2bKpXP9%2ffPJ" frameborder="0" style="width: 0px; height: 0px"> </iframe> </div> <span id="LabelScript"></span> <script src="https://mstatic.bingdoc.com/JS/bootstrap-collapse.js"></script> </form> <div class="siteInner_bg" style="margin-top: 40px; border: solid 0px red; margin-left: 0px; margin-right: 0px;"> <div class="siteInner"> <p style="text-align: center;">copyright@ 2008-2023 冰点文库 网站版权所有</p><p style="text-align: center;">经营许可证编号:<a href="http://beian.miit.gov.cn/" target="_blank">鄂ICP备19020893号-</a>2</p><script>var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?f82ede2a6dd69d4ed35205d3eb25b840"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })();</script> </div> </div> <div class="trnav clearfix" id="navcontent" style="display: none; background-color:#3a71b1; "> <div class="trlogoside" id="navlogo" style="display: none;"> <a href="https://m.bingdoc.com/" title="冰点文库"><img src="https://www.bingdoc.com/images/logo_bd.png" alt="冰点文库"></a> <div class="trnavclose" id="navclose"> <span></span> </div> </div> <div class="navcontainer"> <div class="row"> <ul class="nav navbar-nav trnavul headercontent" id="navigation" style="margin:20px 0 0px;"> <li><a target="_parent"href="https://m.bingdoc.com/login.aspx">登录</a></li> <li><a target="_parent"href="https://m.bingdoc.com/">首页 </a></li> <li><a target="_parent"href="https://m.bingdoc.com/booklist-0.html">资源分类 </a></li> <li><a target="_parent"href="https://m.bingdoc.com/UserManage/Recharge.aspx?f=0"><img src="https://m.bingdoc.com/images/s.gif" alt="new" class="hottip1">升级会员 <img src="https://www.bingdoc.com/FileUpload/Images/48520fea-bc98-41ae-b183-84689c7075c9.gif" alt="new" class="hottip"></a></li> <li><a target="_parent"href="https://m.bingdoc.com/newslist.html">通知公告 </a></li> <li><a target="_parent"href="https://m.bingdoc.com/h-0.html">帮助中心 </a></li> </ul> </div> </div> </div> <script type="text/javascript"> function stopPropagation(e) { var ev = e || window.event; if (ev.stopPropagation) { ev.stopPropagation(); } else if (window.event) { window.event.cancelBubble = true;//兼容IE } } $("#navmore").click(function (e) { $("#navcontent").show(); $("#navlogo").show(); stopPropagation(e); var navcontentwidth = $("#navcontent").width(); $('#navcontent').css({ 'right': '-' + navcontentwidth + 'px' }); $("#navcontent").show().animate({ "right": 0 }, 300); }); $(document).bind('click', function () { var navcontentwidth = $("#navcontent").width(); $("#navcontent").animate({ 'right': '-' + navcontentwidth + 'px' }, 300, function () { $("#navcontent").hide(); }); $("#navlogo").fadeOut(300); }); $("#navcontent").click(function (e) { stopPropagation(e); }); $("#navclose").click(function (e) { var navcontentwidth = $("#navcontent").width(); $("#navcontent").animate({ 'right': '-' + navcontentwidth + 'px' }, 300, function () { $("#navcontent").hide(); }); $("#navlogo").fadeOut(300); }); </script> <script> function BaseShare(title, desc, imgUrl) { var link = "https://m.bingdoc.com/p-551827.html"; if (wx) { wx.config({ debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。 appId: 'wx3a9604896163fa38', // 必填,公众号的唯一标识 timestamp: '1716638708', // 必填,生成签名的时间戳 nonceStr: '5C572ECA050594C7BC3C36E7E8AB9550', // 必填,生成签名的随机串 signature: '7ebadbf977c823983e95405feb9416b5233b20d9',// 必填,签名,见附录1 jsApiList: ['onMenuShareAppMessage', 'onMenuShareTimeline', 'updateAppMessageShareData', 'updateTimelineShareData', 'hideMenuItems'] // 必填,需要使用的JS接口列表,所有JS接口列表见附录2 //openTagList: ["wx-open-launch-weapp"]//H5打开小程序 }); wx.ready(function () { //需在用户可能点击分享按钮前就先调用 wx.hideMenuItems({// 要隐藏的菜单项,只能隐藏“传播类”和“保护类”按钮,所有menu项见附录3 menuList: ['menuItem:share:qq', 'menuItem:favorite', 'menuItem:share:QZone', 'menuItem:share:email', 'menuItem:originPage', 'menuItem:readMode', 'menuItem:delete', 'menuItem:editTag', 'menuItem:share:facebook', 'menuItem:share:weiboApp', 'menuItem:share:brand'] }); var shareData = { title: title, // 分享标题 desc: desc,//这里请特别注意是要去除html link: link, // 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名一致 imgUrl: imgUrl, // 分享图标 }; wx.updateAppMessageShareData(shareData);//1.4 分享到朋友 wx.updateTimelineShareData(shareData);//1.4分享到朋友圈 }); } } function BaseShare(title, desc, imgUrl, link) { if (link=="") link = "https://m.bingdoc.com/p-551827.html"; if (wx) { wx.config({ debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。 appId: 'wx3a9604896163fa38', // 必填,公众号的唯一标识 timestamp: '1716638708', // 必填,生成签名的时间戳 nonceStr: '5C572ECA050594C7BC3C36E7E8AB9550', // 必填,生成签名的随机串 signature: '7ebadbf977c823983e95405feb9416b5233b20d9',// 必填,签名,见附录1 jsApiList: ['onMenuShareAppMessage', 'onMenuShareTimeline', 'updateAppMessageShareData', 'updateTimelineShareData', 'hideMenuItems'] // 必填,需要使用的JS接口列表,所有JS接口列表见附录2 //openTagList: ["wx-open-launch-weapp"]//H5打开小程序 }); wx.ready(function () { //需在用户可能点击分享按钮前就先调用 wx.hideMenuItems({// 要隐藏的菜单项,只能隐藏“传播类”和“保护类”按钮,所有menu项见附录3 menuList: ['menuItem:share:qq', 'menuItem:favorite', 'menuItem:share:QZone', 'menuItem:share:email', 'menuItem:originPage', 'menuItem:readMode', 'menuItem:delete', 'menuItem:editTag', 'menuItem:share:facebook', 'menuItem:share:weiboApp', 'menuItem:share:brand'] }); var shareData = { title: title, // 分享标题 desc: desc,//这里请特别注意是要去除html link: link, // 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名一致 imgUrl: imgUrl, // 分享图标 }; wx.updateAppMessageShareData(shareData);//1.4 分享到朋友 wx.updateTimelineShareData(shareData);//1.4分享到朋友圈 }); } } </script> <script> $(document).ready(function () { var arr = $(".headercontent"); for (var i = 0; i < arr.length; i++) { (function (index) { var url = "https://m.bingdoc.com/header.aspx"; $.get(url + "?t=" + (new Date()).valueOf(), function (d) { try { arr.eq(index).empty().html(d); } catch (e) { } try { arr.html(d); } catch (e) { } }); })(i); } }); </script> <script src="https://mstatic.bingdoc.com/js/jquery.lazyload.js"></script> <script charset="utf-8"> $("img.lazys").lazyload({ threshold: 200, effect: "fadeIn" }); </script> </body> </html>