title

用 System.Xml 读写XML 整理文档

主宰稳场 提交于 2020-03-18 06:12:07
引自  http://www.cnblogs.com/surfsky/archive/2007/03/13/673625.html example <?xml version="1.0" encoding="utf-8"?> <LinkLibrary xmlns:xsd=" http://www.w3.org/2001/XMLSchema " xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance "> <Link Cat="aa" Url="aa" Desc="aa" /> <Link Cat="bb" Url="aa" Desc="aa" /> <Link Cat="cc" Url="aa" Desc="aa" /> <Link Cat="aa" Url="aa" Desc="aa" /> <Link Cat="aa" Url="aa" Desc="aa" /> <Link Cat="aa" Url="aa" Desc="aa" /> <Link Cat="aa" Url="aa" Desc="aa" /> <Link Cat="aa" Url="aa" Desc="aa" /> <Link Cat="aa" Url="aa" Desc="aa" /> <Link Cat="aa" Url="aa" Desc="aa" />

总结发布jQuery EasyUI 中文API—Layout(Panel)

走远了吗. 提交于 2020-03-15 16:33:48
Panel 【面板】 面板特性可以在div标签内被定义 使用说明 HTML代码 < div id = "p" class = "easyui-panel" title = "标题" icon = "icon-save" collapsible = "true" minimizable = "true" maximizable = true closable = "true" style = "width:500px;height:150px;padding:10px;background:#fafafa;" > 内容 </ div > JavaScript代码 //创建一个面板 $( '#p' ).panel(options); //创建一个定义好的面板 $( '#p' ).panel({ title: 'My Panel' , tools: [{ iconCls: 'icon-new' , handler: function (){alert( 'new' )} },{ iconCls: 'icon-save' handler: function (){alert( 'save' )} }] }); //定位 $( '#p' ).panel( 'move' ,{ left:100, top:100 }); 特性说明 Properties 名称 类型 描述 默认值 title

Vue路由配置是否含底部导航栏

余生长醉 提交于 2020-03-12 16:57:19
let barRoute = { path: '/', component: () => import('../view/basicView'), redirect: '/home', children: [ // 带底部导航 ] } let routes = [ barRoute, { name: 'home', component: () => import('../view/home'), meta: { title: '首页', hasBar: true } }, { name: 'login', component: () => import('../view/login'), meta: { title: '登录' } } ]; // add route path routes.forEach(route => { route.path = route.path || '/' + (route.name || ''); if(route.meta && route.meta.hasBar){ barRoute.children.push(route) } }); routes = routes.filter(route => { return !route.meta || !route.meta.hasBar }) console.log(routes) const

vuex 中模块化开发的一些知识

回眸只為那壹抹淺笑 提交于 2020-03-06 04:46:51
index.html <!doctype html> <html lang="en"> <head> <title>Title</title> <!-- Required meta tags --> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <!-- Bootstrap CSS --> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous"> </head> <body> <div id="app"></div> <!-- Optional JavaScript --> <!-- jQuery first, then Popper.js, then Bootstrap JS --> <script src="https://code.jquery

Spring Boot JPA中关联表的使用

陌路散爱 提交于 2020-03-04 10:22:20
文章目录 添加依赖 构建Entity 构建Repository 构建初始数据 测试 Spring Boot JPA中关联表的使用 本文中,我们会将会通过一个Book和Category的关联关系,来讲解如何在JPA中使用。 添加依赖 我们还是使用H2内存数据库来做测试: < dependency > < groupId > org.springframework.boot </ groupId > < artifactId > spring-boot-starter-data-jpa </ artifactId > </ dependency > < dependency > < groupId > com.h2database </ groupId > < artifactId > h2 </ artifactId > < scope > runtime </ scope > </ dependency > 构建Entity 下面我们构建两个Entity: @Data @Entity public class Book { @Id @GeneratedValue ( strategy = GenerationType . IDENTITY ) private Long id ; private String title ; @ManyToOne private Category

ElementUI之使用Dialog框实现表格当行修改

痴心易碎 提交于 2020-03-04 06:39:07
修改按钮 < el-table-column label = " 操作 " fixed = " right " :render-header = " tableAction " width = " 120 " align = " center " > < template slot-scope = " scope " > <!--单个修改按钮--> < el-button @click = " editModifyNotice(scope.row) " type = " primary " icon = " el-icon-edit " size = " small " circle > </ el-button > <!--单个删除按钮--> < el-button @click = " deleteNotice(scope.row.noticeId) " v-if = " userRole==1 " type = " danger " icon = " el-icon-delete " size = " small " circle > </ el-button > </ template > </ el-table-column > data中需定义的数据 //修改公告 modifyNoticeVisible : false , modifyNoticeTitle :

2.进阶之深入剖析搜索结果的highlight高亮显示

随声附和 提交于 2020-03-02 11:49:55
、一个基本的高亮例子 PUT /blog_website { "settings": { "number_of_shards": 1, "number_of_replicas": 0 }, "mappings": { "blogs": { "properties": { "title": { "type": "text", "analyzer": "ik_max_word" }, "content": { "type": "text", "analyzer": "ik_max_word" } } } } } PUT /blog_website/blogs/1 { "title":"我的第一篇博客", "content":"大家好,这是我写的第一篇博客,特别喜欢这个博客网站" } GET /blog_website/blogs/_search { "query": { "match": { "title": "博客" } }, "highlight": { "fields": { "title": {} } } } { "took": 85, "timed_out": false, "_shards": { "total": 1, "successful": 1, "skipped": 0, "failed": 0 }, "hits": { "total": 1, "max

使用JComponentPack产品中的JWizardPane向导框架

Deadly 提交于 2020-03-02 06:54:33
Use JWizardPane in JComponentPack JWizardPane is a Java wizard component in JComponentPack . JWizardPane usage: Sample code JWizardPane wizardPane = new JWizardPane(); //wizardPane.setLogoIcon(logoIcon); //wizardPane.setLogoText(logoText); //wizardPane.getControlButton(JWizardPane.FINISH_CONTROL).setVisible(false); //wizardPane.getControlButton(JWizardPane.HELP_CONTROL).setVisible(false); JPanel firstPage = new JPanel(); // firstPage: the page you want to show first. JPanel secondPage = new JPanel(); JPanel thirdPage = new JPanel(); JPanel endPage = new JPanel(); wizardPane.addPage(firstPage);

qhfl-3 Course模块

不想你离开。 提交于 2020-03-02 05:01:55
课程模块,包括免费课程以及专题课程两个,主要是课程的展示,点击课程进入课程详细页面 根据功能设计表结构 为了方便,每张表在数据库中添加了中文名 from django.db import models from django.contrib.contenttypes.fields import GenericForeignKey, GenericRelation from django.contrib.contenttypes.models import ContentType # from shopping.models import OrderDetail,Coupon # 注册admin 的时候 方便引入 __all__ = ["Category", "Course", "CourseDetail", "Teacher", "DegreeCourse", "CourseChapter", "CourseSection", "PricePolicy", "OftenAskedQuestion", "Comment", "Account", "CourseOutline"] class Category(models.Model): """课程分类表""" title = models.CharField(max_length=32, unique=True, verbose

python爬取bilbili信息(二)

断了今生、忘了曾经 提交于 2020-02-28 10:54:26
今天是第二部分 在上一部分,我们已经将信息提取的思想做了大致的分析,现在我们就来爬取我们所需要的信息。首先,我把咱们所需要的代码,放在这里。然后逐个讲解。 from typing import List , Any import requests import re def html ( url ) : try : re = requests . get ( url ) re . raise_for_status ( ) re . encoding = re . apparent_encoding return re . text except : print ( '网站提取出现问题' ) def htmltext ( list , text ) : video_num = re . findall ( r '<a title="(.*?)"' , text ) title = re . findall ( r '<a title="(.*?)" href' , text , re . S ) href = re . findall ( r '<a title=".*?" href="//(.*?)"' , text , re . S ) danmu = re . findall ( r '<i class="icon-subtitle"></i>(.*?)<' , text ,