1. simple html dom parser如何保留换行符? 使用simple html dom parser处理html文档比较方便,大部分情况下默认会将html文档或字符串中的换行符给过滤掉,这不会造成什么大的影响。但是有些情况下需要保留原先的换行符,比如说需要保留<pre></pre>中的原先字符串的原样,所以不能将换行符过滤掉,而需要保留。 方法如下: //The PHP Simple HTML Dom Parser's load f ...

    阅读全文
  2. 1.进入工作复本 cd ~/test 2.查看仓库地址(URL) svn info       路径: .     URL: svn://192.168.1.16/web/www.kukaka.org     版本库根: svn://192.168.1.16/web/www.kukaka.org     版本库 UUID: da5e29 ...

    阅读全文
  3. 在通过控制面板的程序中删除瑞星杀毒软件后,发现其没有被彻底删除。重启系统后发现仍然有瑞星的后台程序在运行,并访问瑞星网站,发出一堆请求后下载一些不知名的程序。 通过fiddler可以清楚的看到。 于是搜了下如何彻底删除瑞星. 方法: 1. 首先找到目录C:\Program Files (x86)\Rising\RSD 2. 然后运行 Setup.exe /UNINSTALL /PRODUCT=RAV Setup.exe /UNINSTALL /P ...

    阅读全文
  4. 在学习spring框架生成pdf文档的示例时初识接触到了iText库,本文为学习iText简单提要. https://www.lowagie.com/iText/ 为项目出处,后来这个项目转化为商业版本,所以com.lowagie这个package再也不继续维护和开发了,转向了com.itext包,而对应的官方网站也改为了 https://itextpdf.com/en 。 如果继续学习和使用com.lowagie这个免费包,学习文档可以在此查到&nbs ...

    阅读全文
  5. 原文:https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Guide/Using_promises   一个 Promise 就是一个代表了异步操作最终完成或者失败的对象.  一个promise可以使用它的constructor创建。然而,大多数人都在使用由其他函数创建并返回的promise。因此,本教程将首先探讨返回promise的使用情况。 本质上,一个promise是某个函 ...

    阅读全文
  6. 利用HTML5+CSS就可以制作很多图片效果,而无需使用JS. 这里收集了一些效果demo. Hover效果:     参考资料: https://tympanus.net/Development/HoverEffectIdeas/index2.html ...

    阅读全文
  7. 初学jenkins2018-03-22

    Jenkins搭建 (官网:https://jenkins.io/doc/)   安装后默认是8080端口。在mac下如果是service运行的话,其开启和关闭jenkins守护进程使用下面的方法: Terminal and Start / Stop daemon You want to use launchctl to start and stop Jenkins. Start Jenkins: sudo launchctl load /Libr ...

    阅读全文
  8. 有这样的需求,在导入Oracle数据备份文件时,不希望导入某些表(例如,不希望导入一些history table。这些表这是一些类似于log的记录)。可以使用exclude参数来实现。 impdp <other_parameters> SCHEMAS=scottEXCLUDE=TABLE:"IN ('EMP','DEPT')"  ...

    阅读全文
  9. var // The deferred used on DOM ready readyList, // A central reference to the root jQuery(document) rootjQuery, // Support: IE<10 // For `typeof xmlNode.method` instead of `xmlNode.method !== undefined` core_strundefined = ty ...

    阅读全文
  10. 官方文档 https://docs.oracle.com/cd/E29542_01/dev.1111/e10224/obe_intro.htm#SOASE004 This chapter describes how to subscribe to or publish business events from Oracle Mediator or a BPEL process in a SOA composite application. Business events are publi ...

    阅读全文
  11. 了解下linux shell中的几个特殊变量含义: $# 是传给脚本的参数个数 $0 是脚本本身的名字 $1 是传递给该shell脚本的第一个参数 $2 是传递给该shell脚本的第二个参数 $@ 是传给脚本的所有参数的列表 $* 是以一个单字符串显示所有向脚本传递的参数,与位置变量不同,参数可超过9个 $$ 是脚本运行的当前进程ID号 $? 是显示最后命令的退出状态,0表示没有错误,其他表示有错误   ...

    阅读全文
  12. spring mvc2019-05-10

    The DispatcherServlet Spring's web MVC framework is, like many other web MVC frameworks, request-driven, designed around a central servlet that dispatches requests to controllers and offers other functionality that facilitates ...

    阅读全文
  13. 本文摘自微信官网:https://mp.weixin.qq.com/debug/wxadoc/dev/framework/app-service/route.html   页面路由 在小程序中所有页面的路由全部由框架进行管理。 页面栈 框架以栈的形式维护了当前的所有页面。 当发生路由切换的时候,页面栈的表现如下: 路由方式 页面栈表现 初始化 新页面入栈 ...

    阅读全文
  14. 310

    When it comes to passing exams, having the right study tools can make all the difference. Test prep exam dumps are an invaluable resource Test Prep Exam Dumps   that can help you prepare efficiently and effectively for your exams. By practi ...

    阅读全文
  15. spring boot存放views的默认路径在哪呢? 写了一个简单Controller的ExceptionHandler,代码如下: 目的是访问/demoexception时估计抛出exception,被controller中定义的exceptionhandler捕获并返回给view error3来显示。 @Controller public class SelfExceptionController { @RequestMapping(&quo ...

    阅读全文
  16. 找出下面的javascript中值不为false的表达式: false NaN 0 -0 Boolean(5>6) null undefined "" 5/"test" 5*"Ten" 5+"-5" 5-"5" -15 +0 ...

    阅读全文
  17.   web.xml配置 <servlet> <servlet-name>springmvc</servlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> </servlet> <servlet-mapping> ...

    阅读全文
  18. php配置xdebug2016-12-03

    如何配置xdebug? 首先根据phpinfo的输出,复制到xdebug.org/wizard.php中分析环境配置。如下: XDEBUG EXTENSION FOR PHP | DOCUMENTATION | INSTALLATION home | updates | download | documentation | contributing | license | support | issue tracker If you like Xdebug, pleas ...

    阅读全文
  19. Spring Boot为Spring MVC 提供了 auto-configuration. The auto-configuration adds the following features on top of Spring’s defaults: Inclusion of ContentNegotiatingViewResolver and BeanNameViewResolver beans. Support fo ...

    阅读全文
  20. 58660

    第一次使用Andriod Studio时会做一次初始化设置安装一些文件,SDK, AVD等。遇到这个错误,不知道怎么解决? Creating Android virtual device Unable to create a virtual device: Missing system image required for an AVD setup ...

    阅读全文