10 2021 档案

摘要:JQ监听 //监听屏幕旋转 $(window).on('orientationchange', function() { var $el = $("body"); // 需要重新获得宽和高的元素 newWidth = $el.width(); // 新的宽 newHeight = $el.heigh 阅读全文
posted @ 2021-10-30 14:14 ~且听风吟~ 阅读(312) 评论(0) 推荐(0) 编辑
摘要:移动端键盘弹出 $(document).on('focusin', function() { setTimeout(function() { UpStyle() }, 500) }); 移动端键盘关闭 $(document).on('focusout', function() { setTimeou 阅读全文
posted @ 2021-10-30 14:08 ~且听风吟~ 阅读(273) 评论(0) 推荐(0) 编辑
摘要:什么是AJAX AJAX = 异步的javascript和XML(Asynchronous Javascript and XML) 它不是一门编程语言,而是利用JavaScript在保证页面不被刷新、页面链接不改变的情况下与服务器交换数据并更新部分网页的技术。 对于传统的网页,如果想更新内容,那么必 阅读全文
posted @ 2021-10-30 13:59 ~且听风吟~ 阅读(313) 评论(0) 推荐(0) 编辑
摘要:jquery focus()获得焦点事件 方法:当通过鼠标点击选中元素或通过 tab 键定位到元素时,该元素就会获得焦点。 语法: $(selector).focus() 示例代码: $('#mochu').focus(function(){ $(this).css('border-color',' 阅读全文
posted @ 2021-10-30 13:43 ~且听风吟~ 阅读(1463) 评论(0) 推荐(0) 编辑
摘要:// 对Date的扩展,将 Date 转化为指定格式的String // 月(M)、日(d)、小时(h)、分(m)、秒(s)、季度(q) 可以用 1-2 个占位符, // 年(y)可以用 1-4 个占位符,毫秒(S)只能用 1 个占位符(是 1-3 位的数字) Date.prototype.Form 阅读全文
posted @ 2021-10-25 16:59 ~且听风吟~ 阅读(25) 评论(0) 推荐(0) 编辑
摘要://写cookies function setCookie(name, value) { var Days = 30; var exp = new Date(); exp.setTime(exp.getTime() + Days * 24 * 60 * 60 * 1000); document.co 阅读全文
posted @ 2021-10-25 16:58 ~且听风吟~ 阅读(290) 评论(0) 推荐(0) 编辑
摘要:var a='12,13,14,15';现在想把字符串替换,号为- js 中的replace方法:a.replace(",","-");只能替换掉第一个,号。即,结果为12-13,14,15 js中是没有对字符串进行replaceAll的方法,通常这个时候,全部替换采用正则表达式的方式替换。如下: 阅读全文
posted @ 2021-10-25 16:57 ~且听风吟~ 阅读(71) 评论(0) 推荐(0) 编辑
摘要:head中添加 <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> 阅读全文
posted @ 2021-10-25 16:56 ~且听风吟~ 阅读(40) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2021-10-25 16:52 ~且听风吟~ 阅读(27) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2021-10-25 16:51 ~且听风吟~ 阅读(11) 评论(0) 推荐(0) 编辑
摘要:语法 REPLACE ( ''string_replace1'' , ''string_replace2'' , ''string_replace3'' ) 参数 ''string_replace1'' 待搜索的字符串表达式。string_replace1 可以是字符数据或二进制数据。 ''stri 阅读全文
posted @ 2021-10-25 16:49 ~且听风吟~ 阅读(146) 评论(0) 推荐(0) 编辑
摘要:--定义变量 DECLARE @username varchar(20),@UserId varchar(100) --定义游标 (游标抓取表格信息) DECLARE cursor_name CURSOR FOR SELECT TOP 10 UserId,UserName FROM UserInfo 阅读全文
posted @ 2021-10-25 16:49 ~且听风吟~ 阅读(87) 评论(0) 推荐(0) 编辑
摘要:@@error表示上一条SQL语句执行结果是否有错,如果@@error的值不等于0,即是出错的情况就要采取措施,比如回滚。 阅读全文
posted @ 2021-10-25 16:47 ~且听风吟~ 阅读(422) 评论(0) 推荐(0) 编辑
摘要:1,查看那个表死锁 select object_name(resource_associated_entity_id) as tableName, request_session_id as pid from sys.dm_tran_locks where resource_type = 'OBJE 阅读全文
posted @ 2021-10-25 16:46 ~且听风吟~ 阅读(98) 评论(0) 推荐(0) 编辑
摘要:1.增加列: 1.alter table tableName add columnName varchar(30) 2.ALTER TABLE dbo.doc_exa ADD column_b VARCHAR(20) NULL, column_c INT NULL ; 2.1. 修改列类型: 1.a 阅读全文
posted @ 2021-10-25 16:45 ~且听风吟~ 阅读(783) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示