码迷,mamicode.com
首页 >  
搜索关键字:A component require    ( 12084个结果
node 项目案例
生成package.json 文件 // 引入 router模块 const getRouter = require('router'); // 获取路由对象 const router = getRouter(); 安装日期处理时间 插件 // 引入处理日期的第三方模块 const dateform ...
分类:其他好文   时间:2020-06-11 16:28:05    阅读次数:81
nodejs 几个不错的callback 以及promise 转换处理工具
nodejs 的一步调用经历了,callback -> promise -> async await(语法糖) 模式的转变 以下是几个整理 nodejs 自带的callback -> promise 处理 util 工具包 参考使用 const util = require("util") func ...
分类:Web程序   时间:2020-06-11 13:40:19    阅读次数:97
@Component、@Service、@Controller、@Rrepository说明
自己开发了一个股票智能分析软件,功能很强大,需要的点击下面的链接获取: https://www.cnblogs.com/bclshuai/p/11380657.html 1 Spring容器 Spring容器是Spring的核心,一切Spring bean都存储在Spring容器内,并由其通过IoC ...
分类:其他好文   时间:2020-06-11 12:03:13    阅读次数:50
nodejs-mongodb 增删改查操作 案例1
const http = require('http'); // 连接数据库 const mongoose = require('mongoose'); const url = require('url'); const querystring = require('querystring'); / ...
分类:数据库   时间:2020-06-11 12:01:03    阅读次数:75
小程序自定义弹层组件
自己用到的,记录一下 1、效果图 2、弹层组件代码 a、js代码 1 // components/dialog/index.js 2 Component({ 3 options: { 4 multipleSlots: true 5 }, 6 properties: { 7 //高度 8 height ...
分类:微信   时间:2020-06-11 10:29:37    阅读次数:82
esayswool_admin的3个坑
第一,下载github的自己的zip打包,自动的那个多了个东西不能运行 第二,easyswoole/http可以用1.5.1,如果是最新版的会出错。可以用composer require "easyswoole/http:1.5.1"这样降级 第三,后台登陆的时候用的id,不是name,所以要用10 ...
分类:其他好文   时间:2020-06-11 09:13:20    阅读次数:50
Spring IoC 容器配置(半注解方式 )
半注解半xml配置的开发方式 把<bean> 属性注入<property>,使用注解方式的替换 替换bean的注解: @Component, 标记在类上, 表示把这个类,交给Spring管理, 除dao,service,web层之外的类 @Repository 用于注册DAO(持久层 ) @Serv ...
分类:编程语言   时间:2020-06-10 21:25:26    阅读次数:81
React设计权限控制时通过cloneElement修改元素的props属性
部分简化后的代码如下: interface Iprops { roles: string; } export class Authorize extends React.Component<Iprops, any>{ renderDom() { const { roles, children } = ...
分类:其他好文   时间:2020-06-10 19:09:35    阅读次数:78
Node.js ORM - Sequelize
概述:基于Promise的ORM(Object Relation Mapping),?持多种数据库、事务、关联等 (async () => { const Sequelize = require("sequelize"); // 建?连接 const sequelize = new Sequeliz ...
分类:Web程序   时间:2020-06-10 18:53:16    阅读次数:101
mysql 根据某一列进行区间统计
mysql中可以利用elt,interval函数来实现此类需求 mysql> select * from k1; + + + | id | yb | + + + | 1 | 100 | | 2 | 11 | | 3 | 5 | | 4 | 501 | | 5 | 1501 | | 6 | 1 | + ...
分类:数据库   时间:2020-06-10 15:58:29    阅读次数:145
12084条   上一页 1 ... 73 74 75 76 77 ... 1209 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!