param

符合W3C标准的网页FLASH嵌套

对着背影说爱祢 提交于 2019-12-07 09:45:21
<object type="application/x-shockwave-flash" data="../flash/menu.swf" width="990" height="60" id="menu"> <param name="movie" value="../flash/menu.swf"/> <param name="allowFullScreen" value="true" /> <param name="FlashVars" value="xml=vcastr.xml" /> </object> 参考: 结合我们的XXX的例子,介绍一下符合w3c标准的flash代码的插入方法,并说明各个参数的设置 <object type="application/x-shockwave-flash" data="XXX.swf" width="650" height="500" id="XXX" bgColor="#ff0000"> <param name="movie" value="XXX.swf"/> <param name="allowFullScreen" value="true" /> <param name="FlashVars" value="xml=vcastr.xml" /> </object> 以上是XXX flash的插入代码,通过了w3c的验证

JavaScript代码库---2019持续更新

北城以北 提交于 2019-12-07 06:23:46
这个代码库全部是自己平时工作中总结出来的,还有一些是在网上浏览各种博客时整理出来的。有需要的朋友可以作为参考,某些地方如果有误,还请各位留言指出。 2018-10-25 .1.js中入门/入口函数的写法//前提条件需要引入jQuery $(document).ready(function() { //初始化时需要做的一些事情 //如果需要初始化多个函数,并且需要让这几个函数按照顺序执行,则可以采取如下的方式,使用一个立即执行函数 (async () => { await a();//初始化时执行的函数a await b();//初始化时执行的函数b await c();//初始化时执行的函数c })(); //还有一种初始化方式 当页面初始化时,有多个方法,而一个方法初始化时需要使用另外一个方法初始化的结果,这种情况就可以使用下面这种方式初始化//// 初始化汇总//这里有一点需要注意,async/await//函数是在ES7的标准规范中才正式确立下来//要不要在ES6中使用还需慎重//不过这种写法倒是值得推介// initSummary().then(result => { console.log(`initSummary: ${result}`); }).catch(err => { msgError(`${err}`); console.log(`initSummary

Scala函数 总结

眉间皱痕 提交于 2019-12-07 06:16:58
主函数 函数的调用 函数的匹配 函数返回类型的设定 函数的递归 嵌套函数 偏应用函数 高阶函数 柯里化函数 object Fun { /** * 定义方法 def * 主函数必须用unit * 其他的函数中,返回值类型可加也可以不用加 * @param args */ def main ( args : Array [ String ] ) : Unit = { /** * 返回最大值函数 * @param x * @param y * @return */ def max ( x : Int , y : Int ) : Int = { if ( x > y ) { return x } else { return y } } println ( max ( 100 , 10 ) ) println ( "+++++++++++++++++++++++++++++++++++++++++++++++++++++" ) def max1 ( x : Int , y : Int ) : Int = { if ( x > y ) return x else return y } println ( max1 ( 100 , 10 ) ) println ( "-----------------------------------------------------" ) /** *

tp5使用PHPexcel扩展导出excel表

一笑奈何 提交于 2019-12-07 05:22:54
1,使用composer安装phpexcel包: composer require phpoffice/phpexcel 2,在控制器中创建方法: (1)使用PHPexcel扩展。代码如下: /** * 导出excel表格(默认格式) * * @param array $columName 第一行的列名称 * @param array $list 二维数组 * @param string $setTitle sheet名称 * @return * @author Tggui <tggui@vip.qq.com> */ private function exportExcel1($columName, $list, $fileName='demo', $setTitle='Sheet1'){ vendor('phpoffice.phpexcel.Classes.PHPexcel'); vendor('phpoffice.phpexcel.Classes.PHPexcel.IOFactory'); if ( empty($columName) || empty($list) ) { return '列名或者内容不能为空'; } if ( count($list[0]) != count($columName) ) { return '列名跟数据的列不一致'; } $fileName =

Sending/Receiving a string through PostMessage

邮差的信 提交于 2019-12-07 01:22:49
问题 Although there are already a few resources online that address this rough topic, I still haven't found an answer that works for me. I desire to have full communication between my VB.net process and my C++ process. I would like to be able to send a string to and from the C++ process, but for the time being I need to achieve: Sending a string to the C++ process, and handling it. This creates a few points that I am uncertain on, but I'll try to keep this as simple as possible... Using the

SpringData系列四 @Query注解及@Modifying注解@Query注解及@Modifying注解

北慕城南 提交于 2019-12-06 23:46:44
 @Query注解查询适用于所查询的数据无法通过关键字查询得到结果的查询。这种查询可以摆脱像关键字查询那样的约束,将查询直接在相应的接口方法中声明,结构更为清晰,这是Spring Data的特有实现。 索引参数与命名参数     1、索引参数如下所示,索引值从1开始,查询中 "?X" 个数需要与方法定义的参数个数相一致,并且顺序也要一致。      1 @Query("SELECT p FROM Person p WHERE p.lastName = ?1 AND p.email = ?2") 2 List<Person> testQueryAnnotationParams1(String lastName, String email);     注释:上面代码中的?1,?2表示参数的占位符,需要和方法中所传递的参数顺序一致。X是从1开始。     2、命名参数(推荐使用此方式):可以定义好参数名,赋值时使用@Param("参数名"),而不用管顺序。 1 // 为@Query注解传递参数的方式1:命名参数 2 @Query("SELECT p FROM Person p WHERE p.lastName = :lastName AND p.email = :email") 3 List<Person> testQueryAnnotationParams2(@Param("email

springBoot整合Redis

北城余情 提交于 2019-12-06 18:54:35
一、引入redis包 springboot 版本2.2.0 <!--redis依赖--><dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId></dependency> 二、仅做配置 springboot 自动装配类为: RedisAutoConfiguration 正常情况下,只需要配置yml 文件或property 文件就可以使用 redisTemplate 进行redis 操作,以yml配置为例 1、单机redis配置 spring: redis: password: zjl123 jedis: pool: max-active: 200 max-idle: 20 min-idle: 5 max-wait: -1 host: 192.168.244.128 port: 6381 密码在redis.conf 文件里配置 pool 下的配置是redis连接池配置 max-active:最大连接数 max-idle:最大等待中的连接数量 min-idle:最小等待中的连接数量 max-wait:最大等待时长 2、sentinel模式配置 spring: redis: password: zjl123 jedis:

rails 3 render partial with params

风流意气都作罢 提交于 2019-12-06 18:49:51
问题 I'm having a problem passing some parameters to a partial. No matter what I've tried the params don't pass when the partial is rendered. I am using a jquery tabbed layout, and each tab displays work orders in a particular status and also based on a range of dates. I am using the params :sort_filter and :status_filter to accomplish this. My original code is here, but I want to change this to render partials in the link_to's instead of the way it's listed here: <ul> <li><%= link_to "Active",

JdbcTemplateUtil 工具类分享

倾然丶 夕夏残阳落幕 提交于 2019-12-06 18:30:26
集合网上各类资料,自己整理封装的一个JDBC工具类,用于关系型数据库的增删改查,默认使用druid连接池,分享下方便大家平时使用(转载请注明出处) import com.alibaba.druid.pool.DruidDataSourceFactory; import javax.sql.DataSource; import java.io.IOException; import java.io.InputStream; import java.lang.reflect.Field; import java.lang.reflect.Modifier; import java.sql.*; import java.util.*; import java.util.regex.Matcher; import java.util.regex.Pattern; /** * JdbcTemplateUtil 工具类(默认使用druid连接池) */ public class JdbcTemplateUtil<JdbcAbstractMapper> { public static void main(String[] args) throws IOException { System.out.println(JdbcTemplateUtil.getConnection()); /** *

@param注解

时光总嘲笑我的痴心妄想 提交于 2019-12-06 16:51:31
文章:mybatis传多个参数(不使用@param注解情况和使用@param注解的情况) 地址:https://blog.csdn.net/qq_39505065/article/details/90550705 来源: https://www.cnblogs.com/Tpf386/p/11995534.html