Promise 是异步编程的一种解决方案。 Promise /** * 属性 */ Promise.length Promise.prototype /** * 方法 */ Promise.all(iterable) // 所有成功触发成功 任何失败触发失败 Promise.race(iterabl ...
分类:
其他好文 时间:
2020-06-24 21:33:06
阅读次数:
47
在我们的工作中经常遇到这样一个问题,在页面中保存一条数据,有个字段值为“张三”,但是,不知道这条数据保存在了哪个表中,现在我们想要追踪该值是存储到了那个表的那个字段中,具体要怎么操作呢?下面我们可以借助存储过程来解决这一问题 首先,创建一个存储过程,具体代码如下 create PROCEDURE [ ...
分类:
数据库 时间:
2020-06-24 14:08:02
阅读次数:
77
1、jQuery中的ajaxget方法:$.ajax({ url:"v4/api/film/now-playing?t=1539401039415&page=1&count=5", type:"GET", success:(result)=>{ return result } })post方法:$.... ...
分类:
移动开发 时间:
2020-06-20 17:09:46
阅读次数:
66
git本地的tag和远程仓库不匹配: 2020-06-20 现象: 1、git log 命令显示没有远端的tag版本 2、GIT本地目录无法pull下远程仓库已新增的内容,一直提示Already up to date 3、本地tag数量比远程仓库多git tag 命令查看本地tag数 原因: 。。。 ...
分类:
其他好文 时间:
2020-06-20 16:31:41
阅读次数:
145
[e:loop={'select * from [!db.pre!]enewsclass where bclassid in(1) order by rand() desc limit 10',10,24,0}] <? if($bqr['classurl']=='') { $sccurl=$publ ...
分类:
其他好文 时间:
2020-06-19 00:51:18
阅读次数:
54
# 查看远程仓库推拉地址,分支信息,分支跟踪情况等 git remote show origin # 拉取远程仓库的变更内容到本地 git fetch origin # 拉取并合并仓库的变更内容到本地 git pull # 添加远程仓库跟踪地址 git remote add # 推送本地的提交到远程 ...
分类:
其他好文 时间:
2020-06-18 19:37:11
阅读次数:
41
1. import tensorflow as tf #创建一个常量op m1 = tf.constant(([[3,3]])) #创建一个常量op m2 = tf.constant(([[2],[3]])) #创建一个矩阵乘法op,把m1和m2传入。 product = tf.matmul(m1, ...
分类:
编程语言 时间:
2020-06-18 01:51:17
阅读次数:
74
1-使用 git remote -v 查看对应的克隆地址: git remote -v origin https://github.com/username/repository.git (fetch) origin https://github.com/username/repository.gi ...
分类:
其他好文 时间:
2020-06-16 23:47:54
阅读次数:
60
在网上搜了一下问题,试了两种方法:方法一:npminstall-gcnpm--registry=https://registry.npm.taobao.organdcnpminstall替代npminstall此方法在我电脑上不工作,由于security原因,下载三方库还是不能成功:cnpminstallcnpm:FileC:\Users\xup\AppData\Roaming\npm\cnpm.
分类:
Web程序 时间:
2020-06-15 09:44:03
阅读次数:
151