摘要: js的单线程和异步 前言 说到js的单线程(single threaded)和异步(asynchronous),很多同学不禁会想,这不是自相矛盾么?其实,单线程和异步确实不能同时成为一个语言的特性。js选择了成为单线程的语言,所以它本身不可能是异步的,但js的宿主环境(比如浏览器,Node)是多线程 阅读全文
posted @ 2019-03-20 00:12 LIGHTPRO 阅读(385) 评论(0) 推荐(0) 编辑
摘要: 看具体是什么数据库,以oracle,mysql,sqlserver分别回答。 1、oracle: 1 select count(*) from user_tab_cols where table_name='表名';--表名含英文的话应为英文大写字母 结果如图: 2、mysql: 1 select  阅读全文
posted @ 2019-03-14 10:19 LIGHTPRO 阅读(4831) 评论(0) 推荐(0) 编辑
摘要: --这是查找菜单 第一行是一级菜单,下面是二级菜单 with temp as ( select MenuCode,ParentCode,MenuName,URL,1 as curMenuLevel from sys_menu where (ParentCode is null or ParentCode = '') and MenuCode='pms' un... 阅读全文
posted @ 2019-03-12 16:36 LIGHTPRO 阅读(746) 评论(0) 推荐(0) 编辑
摘要: declare @Storage int, @EdsProd intdeclare My_cursor cursor scroll for select distinct Storage,EdsProd from InmInventory open My_cursor fetch next from My_cursor into @Storage,@EdsProd while(@@fetch... 阅读全文
posted @ 2019-03-12 16:25 LIGHTPRO 阅读(234) 评论(0) 推荐(0) 编辑
摘要: //放到 扩展datagrid 的js中 $.extend($.fn.datagrid.methods, { addEditor: function (jq, param) { if (param instanceof Array) { $.each(param, function (index, i... 阅读全文
posted @ 2019-03-12 16:18 LIGHTPRO 阅读(811) 评论(0) 推荐(0) 编辑
摘要: //放到easyui 对应的扩展datagrid 的js中 $.extend($.fn.datagrid.defaults.editors, { combogrid: { init: function (container, options) { var input = $('').appendTo(... 阅读全文
posted @ 2019-03-12 16:10 LIGHTPRO 阅读(1255) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-03-12 16:03 LIGHTPRO 阅读(1772) 评论(0) 推荐(0) 编辑
摘要: CREATE FUNCTION [dbo].[F_StringSplit]( @STR NVARCHAR(MAX)='', @SPLITER NVARCHAR(20)='' ) RETURNS @TB TABLE(TB_V NVARCHAR(200) AS BEGIN DECLARE @NUM IN 阅读全文
posted @ 2019-03-12 15:22 LIGHTPRO 阅读(365) 评论(0) 推荐(0) 编辑