官方app //#ifdef APP-PLUS plus.runtime.launchApplication( {//打开app2 pname: 'com.MobileTicket' }, function(e) { //打开失败时 console.log(e); uni.navigateTo({ ...
分类:
移动开发 时间:
2020-12-19 11:44:05
阅读次数:
2
TVM中的调度原语 TVM是一种用于高效内核构造的领域专用语言。 本文将展示如何通过TVM提供的各种原语来调度计算。 from __future__ import absolute_import, print_function import tvm from tvm import te import ...
分类:
其他好文 时间:
2020-12-18 13:20:58
阅读次数:
4
计算属性 为什么需要计算属性 把复杂的计算逻辑用简洁的模板内容体现出来。 计算属性的用法 computed: { reverseString: function(){ return this.msg.split('').reverse().join(''); } } 弄好了直接在页面中引用计算属性的 ...
分类:
其他好文 时间:
2020-12-18 13:08:47
阅读次数:
3
自定义指令 当指令不满足需求时,可以自定义指令,语法如下: Vue.directive('focus',{ inserted: function(el){ //el表示指令所绑定的元素 el.focus() } }) 使用方法和其他指令一样 <input type="text" v-focus> 带 ...
分类:
其他好文 时间:
2020-12-18 13:03:56
阅读次数:
3
let obj={ name:'金毛' } function test(){ console.log(123,this) } test.call(obj,'123') //手写 Function.prototype.myCall=function(thisObj,arr){ let Fn = thi ...
分类:
其他好文 时间:
2020-12-18 12:55:04
阅读次数:
3
1 promise.then(function(value) { 2 // success 3 }, function(error) { 4 // failure 5 }); then本质上是一个函数,因为then存在于对象之中,所以又叫做方法。将then当做一个函数就ok了。 then有两个参数, ...
分类:
其他好文 时间:
2020-12-18 12:46:53
阅读次数:
3
1 type testName = 'lx' | 'bj' | 'cd' | 1; 2 3 function testFun(arg1: testName){ 4 5 } 6 testFun('lx'); //正确 7 testFun(1); //正确 8 testFun('ll'); //错误 ...
分类:
其他好文 时间:
2020-12-18 12:35:08
阅读次数:
2
function getCacheData(key: string): any { return (window as any).cache[key]; } interface Cat { name: string; run(): void; } const tom = getCacheData(' ...
分类:
其他好文 时间:
2020-12-18 12:29:58
阅读次数:
2
CREATE OR REPLACE FUNCTION "F_UPPER_MONEY_NEW"(I_NUM in number default null ) return nvarchar2 is /* 处理数字金额转换为汉字表达 --情况1.保留元角分 (默认) 10240035001421.1 / ...
分类:
数据库 时间:
2020-12-17 12:58:22
阅读次数:
7
{ checkbox: true, visible: true, formatter: function (value, row, index) { if(row.isCheck =="1"){ return {disabled : true,} }else{ return {disabled : ...
分类:
其他好文 时间:
2020-12-17 12:54:44
阅读次数:
3