当前位置: 首页 > news >正文

做那类网站赚钱如何看网站的流量

做那类网站赚钱,如何看网站的流量,友情链接平台广告,大数据营销获客接了个单子#xff0c;需要添加一个文章模块#xff0c;一看用到的技术这么老#xff0c;人傻了#xff0c;纯html css js 。 在普通页面中 !DOCTYPE html html langenheadmeta charsetUTF-8meta name需要添加一个文章模块一看用到的技术这么老人傻了纯html css js 。 在普通页面中 !DOCTYPE html html langenheadmeta charsetUTF-8meta nameviewport contentwidthdevice-width, initial-scale1.0titleDocument/titlelink hrefhttps://unpkg.com/wangeditor/editorlatest/dist/css/style.css relstylesheet!-- Bootstrap CSS --link hrefhttps://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css relstylesheetstyle#editor—wrapper {border: 1px solid #ccc;z-index: 100;}#toolbar-container {border-bottom: 1px solid #ccc;}#editor-container {height: 500px;}.row {width: 98%;padding-left: 10px;padding-right: 10px;display: flex;justify-content: space-between;}.half-width {width: 45%;}.marginLeft {margin-left: 30px;}/style /headbodydiv classrow marginLeftdiv ideditor—wrapper classhalf-widthdiv idtoolbar-container!-- 工具栏 --/divdiv ideditor-container!-- 编辑器 --/div/divdiv classhalf-widthh1 styletext-align: center; font-family: 楷体; margin: 0 0; height: 10%;展示效果/h1div ideditor-showNode styleborder: 1px solid #ccc;height: 90%;!-- 编辑器 --/div/div /divdiv classmarginLeft stylemargin-top: 50px; display: flex; align-items: center;p stylemargin-right: 10px; display: inline-block; margin-top: 13px;文件名称/pinput styledisplay: inline-block; width: 80%; typetext classform-control placeholder文件名称 aria-describedbybasic-addon2 /divdiv classmarginLeft stylemargin-top: 50px; display: flex; align-items: center;p stylemargin-right: 10px; display: inline-block; margin-top: 13px;添加备注/pinput styledisplay: inline-block; width: 80%; typetext classform-control placeholder添加备注 aria-describedbybasic-addon2 /div br/ div classmarginLeft stylemargin-top: 50px; display: flex; align-items: center;p stylemargin-right: 10px; display: inline-block; margin-top: 15px;选择附件/pinput typefile classbtn btn-primary data-togglebutton aria-pressedfalse /divdiv classd-flex justify-content-center mb-3 stylemargin-top: 80px; margin-left: -50px; margin-bottom: 40pxbutton idclear-editor classbtn btn-primary stylewidth: 300px;提交公告摘要/button !-- 使用了Bootstrap的按钮样式 -- /div div styleheight: 50px/div/body!-- Bootstrap JS -- script srchttps://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js/scriptscript srchttps://unpkg.com/wangeditor/editorlatest/dist/index.js/script scriptconst { createEditor, createToolbar } window.wangEditorconst editorConfig {placeholder: Type here...,onChange(editor) {const html editor.getHtml()console.log(, html) //html是当前编辑器的内容// 也可以同步到 textareadocument.getElementById(editor-showNode).innerHTMLhtml;}}const editor createEditor({selector: #editor-container,html: pbr/p, //这是编辑器默认显示的内容config: editorConfig,mode: default, // or simple})const toolbarConfig {}const toolbar createToolbar({editor,selector: #toolbar-container,config: toolbarConfig,mode: default, // or simple});// 为按钮添加点击事件处理函数document.getElementById(clear-editor).addEventListener(click, function() {// 使用编辑器的 clear 方法来清空内容editor.clear()}) /script/html效果 在表单页面中需要与要上传的文件一起添加到服务器 添加了一个隐藏的textarea标签来存储编辑器的内容在提交表单时更新这个字段的值。改改了了按钮的点击事件处理函数使其在提交表单时阻止默认的表单提交行为并通过XMLHttpRequest发送一个POST请求把所有内容提交到后台。 !DOCTYPE html html langen headmeta charsetUTF-8meta nameviewport contentwidthdevice-width, initial-scale1.0titleDocument/titlelink hrefhttps://unpkg.com/wangeditor/editorlatest/dist/css/style.css relstylesheet!-- Bootstrap CSS --link hrefhttps://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css relstylesheetstyle#editor—wrapper {border: 1px solid #ccc;z-index: 100;}#toolbar-container {border-bottom: 1px solid #ccc;}#editor-container {height: 500px;}.row {width: 98%;padding-left: 10px;padding-right: 10px;display: flex;justify-content: space-between;}.half-width {width: 45%;}.marginLeft {margin-left: 30px;}/style /head body form idmyForm methodpost enctypemultipart/form-datadiv classrow marginLeftdiv ideditor—wrapper classhalf-widthdiv idtoolbar-container!-- 工具栏 --/divdiv ideditor-container!-- 编辑器 --/div/divdiv classhalf-widthh1 styletext-align: center; font-family: 楷体; margin: 0 0; height: 10%;展示效果/h1div ideditor-showNode styleborder: 1px solid #ccc;height: 90%;!-- 编辑器 --/div/div/divdiv classmarginLeft stylemargin-top: 50px; display: flex; align-items: center;p stylemargin-right: 10px; display: inline-block; margin-top: 13px;文件名称/pinput namefileName styledisplay: inline-block; width: 80%; typetext classform-control placeholder文件名称 aria-describedbybasic-addon2/divdiv classmarginLeft stylemargin-top: 50px; display: flex; align-items: center;p stylemargin-right: 10px; display: inline-block; margin-top: 13px;添加备注/pinput namenote styledisplay: inline-block; width: 80%; typetext classform-control placeholder添加备注 aria-describedbybasic-addon2/divdiv classmarginLeft stylemargin-top: 50px; display: flex; align-items: center;p stylemargin-right: 10px; display: inline-block; margin-top: 15px;选择附件/pinput namefile typefile classbtn btn-primary data-togglebutton aria-pressedfalse/divtextarea ideditorContent nameeditorContent styledisplay: none;/textareadiv classd-flex justify-content-center mb-3 stylemargin-top: 80px; margin-left: -50px; margin-bottom: 40pxbutton idsubmit classbtn btn-primary stylewidth: 300px;提交公告摘要/button/div /form!-- Bootstrap JS -- script srchttps://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js/script script srchttps://unpkg.com/wangeditor/editorlatest/dist/index.js/scriptscriptconst { createEditor, createToolbar } window.wangEditorconst editorConfig {placeholder: Type here...,onChange(editor) {const html editor.getHtml()console.log(, html)document.getElementById(editor-showNode).innerHTMLhtml;}}const editor createEditor({selector: #editor-container,html: pbr/p, config: editorConfig,mode: default, })const toolbarConfig {}const toolbar createToolbar({editor,selector: #toolbar-container,config: toolbarConfig,mode: default,});document.getElementById(submit).addEventListener(click, function(event) {event.preventDefault(); document.getElementById(editorContent).value editor.getHtml();var formElement document.querySelector(form);var formData new FormData(formElement);var request new XMLHttpRequest(); request.open(POST, /submit); request.send(formData); }) /script /body /html效果
http://www.zqtcl.cn/news/105904/

相关文章:

  • 网站大全浏览器软文的概念
  • 盐山做网站价格莱芜征婚吧
  • 具有品牌的微网站建设网站设计培训班前台
  • 网站推广工具推荐html网站地图在线生成
  • 成都本地网站建设青岛电子商务的网站建设
  • 北京网站开发培训河南省百城建设提质工程网站
  • 郑州专业建网站南通网站建设技术支持
  • 简约网站程序网络营销方式较为单一
  • 绍兴企业自助建站123房产网
  • 科技类网站设计特点备案 网站首页地址
  • 做兼职网站网站建设培训速成
  • 开源的网站管理系统商务网站设计与建设实训
  • 东莞三合一网站制作江阴做网站的公司有
  • mvc5 网站开发之學 pdf百度搜索引擎首页
  • 手机进入网站自动识别城阳区规划建设局网站
  • 网站开发平台的公司订票网站开发公司
  • 郑州网站推广信息网架结构厂家
  • 提升网站流量的方法汕头站扩建
  • 响应式网站建设制作需要注意什么网站建设汇卓
  • 馨雨公司网站建设策划方案一个网站能放多少关键词
  • 福州 网站开发洛阳做网站找哪家好
  • 网站建设创业书海外短视频平台
  • 网站建设的职称做h5长图网站
  • 石家庄正规制作网站公司网页版微信会在电脑上留下记录吗
  • 互联网网站界面设计 要素没有网怎么安装wordpress
  • asp 英文企业网站 免费WordPress发图册
  • 东莞搜索seo优化排名天津seo托管
  • 做网站一年大概的盈利淘宝式网站建设
  • 深圳网站优化最好的方法wordpress文章如何添加标签
  • 炫酷文字制作网站房屋和建设工程信息平台