码迷,mamicode.com
首页 >  
搜索关键字:function    ( 54714个结果
uni-app判断有没有安装这个app,如果有的话直接打开,没有的话跳转到下载页面
官方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是一种用于高效内核构造的领域专用语言。 本文将展示如何通过TVM提供的各种原语来调度计算。 from __future__ import absolute_import, print_function import tvm from tvm import te import ...
分类:其他好文   时间:2020-12-18 13:20:58    阅读次数:4
Vue计算属性
计算属性 为什么需要计算属性 把复杂的计算逻辑用简洁的模板内容体现出来。 计算属性的用法 computed: { reverseString: function(){ return this.msg.split('').reverse().join(''); } } 弄好了直接在页面中引用计算属性的 ...
分类:其他好文   时间:2020-12-18 13:08:47    阅读次数:3
vue 自定义指令
自定义指令 当指令不满足需求时,可以自定义指令,语法如下: Vue.directive('focus',{ inserted: function(el){ //el表示指令所绑定的元素 el.focus() } }) 使用方法和其他指令一样 <input type="text" v-focus> 带 ...
分类:其他好文   时间:2020-12-18 13:03:56    阅读次数:3
手写call
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
Promise实例的then方法
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
类型断言 vs 泛型
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
Oracle数字金额转为汉字展示
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
bootstrap控制复选框根据属性
{ 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
54714条   上一页 1 ... 64 65 66 67 68 ... 5472 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!