随笔分类 -  Javascript

摘要:1. 去除字符串中的 html 标签 function delHtmlTag(str){ return str.replace(/<[^>]+>/g,""); } var str = "<span style='display:none;'>This is test</span><br/>"; st 阅读全文
posted @ 2020-09-14 14:02 Javi 阅读(1174) 评论(0) 推荐(0)
摘要:<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <title>CodePen - jQuery Organization Chart</title> <link rel="stylesheet" href="https: 阅读全文
posted @ 2020-06-09 15:42 Javi 阅读(507) 评论(0) 推荐(0)
摘要:function launchFullscreen(element) { if(element.requestFullscreen) { element.requestFullscreen(); } else if(element.mozRequestFullScreen) { element.mo 阅读全文
posted @ 2019-09-17 13:16 Javi 阅读(382) 评论(0) 推荐(0)
摘要:<configuration> <system.web> <compilation debug="true" targetFramework="4.0" /> <webServices> <protocols> <add name="HttpGet"/> <add name="HttpPost"/> 阅读全文
posted @ 2019-07-20 07:40 Javi 阅读(434) 评论(0) 推荐(0)
摘要:msg is <?xml ?> <Parameters> <WorkflowName>...</WorkflowName> </Parameters> <Parameters> ... </Parameters> var arr=$(msg).find('Parameters'); var work 阅读全文
posted @ 2018-01-17 10:35 Javi 阅读(632) 评论(0) 推荐(0)
摘要:Sending the Access-Control-Allow-Origin header allows basic cross-origin access, but calling ASP.NET services like ASMX ScriptServices, ASPX page meth 阅读全文
posted @ 2018-01-17 09:17 Javi 阅读(180) 评论(0) 推荐(0)
摘要:Choose File... Submit ... 阅读全文
posted @ 2017-12-06 09:18 Javi 阅读(416) 评论(0) 推荐(0)
摘要:Download Source - 955.2 KB Content Part 1: Angular2 Setup in Visual Studio 2017, Basic CRUD application, third party modal pop up control Part 2: Filt 阅读全文
posted @ 2017-06-19 10:10 Javi 阅读(655) 评论(0) 推荐(0)
摘要:支持ajax 跨域调用的WCF搭建 1.新建一个"ASP.NET空Web应用程序"项目。 2.新建一个“WCF服务(支持ajax)”。 3.修改WCFAjaxService.svc下的WCFAjaxService.svc.cs文件 如下所示(示例): 注意别忘了给Service打上 [Javascr 阅读全文
posted @ 2017-03-24 20:51 Javi 阅读(381) 评论(0) 推荐(0)
摘要:在客户端存储数据 HTML5 提供了两种在客户端存储数据的新方法: localStorage - 没有时间限制的数据存储 sessionStorage - 针对一个 session 的数据存储 之前,这些都是由 cookie 完成的。但是 cookie 不适合大量数据的存储,因为它们由每个对服务器的 阅读全文
posted @ 2017-03-20 10:46 Javi 阅读(210) 评论(0) 推荐(0)
摘要:概述 window.onpopstate是popstate事件在window对象上的事件句柄. 每当处于激活状态的历史记录条目发生变化时,popstate事件就会在对应window对象上触发. 如果当前处于激活状态的历史记录条目是由history.pushState()方法创建,或者由history 阅读全文
posted @ 2017-03-15 15:37 Javi 阅读(2703) 评论(0) 推荐(0)