码迷,mamicode.com
首页 >  
搜索关键字:function module    ( 65302个结果
static::、self::、new self()、new static()
static::、self::、new self()、new static() <?php class Father{ protected static $name = "大头"; public static function father_self(){ echo self::$name."\n" ...
分类:其他好文   时间:2021-05-24 14:21:29    阅读次数:0
安装pymysql报错 TypeError: 'encoding' is an invalid keyword argument for this function
安装pymysql报错: TypeError: 'encoding' is an invalid keyword argument for this function Command "python setup.py egg_info" failed with error code 1 in c:\ ...
分类:数据库   时间:2021-05-24 13:57:46    阅读次数:0
生成器和生成器函数 例子
// // 函数代码分隔符 // function * gen(){ // // console.log('hello generator'); // } // let iterator = gen(); // // console.log(iterator); // // iterator.nex ...
分类:其他好文   时间:2021-05-24 13:47:04    阅读次数:0
比较字符串
如果数组里的第一个字符串包含了第二个字符串中的所有字母,则返回 true。例如,["hello", "Hello"] 应该返回 true。因为在忽略大小写的情况下,第一个字符串包含了第二个字符串里出现的所有字母。["hello", "hey"] 应该返回 false。因为 hello 并不包含字符  ...
分类:其他好文   时间:2021-05-24 13:43:43    阅读次数:0
vue-cli3构建的项目使用compression-webpack-plugin 进行Gzip压缩
1.安装插件:compression-webpack-plugin npm i -D compression-webpack-plugin 我用的插件在package.json中的版本如下: "devDependencies": { "compression-webpack-plugin": "^3 ...
分类:Web程序   时间:2021-05-24 13:37:41    阅读次数:0
php单列设计模型
<?php class One{ private static $_one; private function __construct(){} private function __clone(){} public static function getOne(){ if(!self::$_one ...
分类:Web程序   时间:2021-05-24 13:36:59    阅读次数:0
确认结尾
检查字符串(第一个参数 str)是否以给定的目标字符串(第二个参数 target)结束。这个挑战 可以 用 ES2015 引入的 .endsWith() 方法来解决。但在这个挑战中,请使用 JavaScript 的字符串子串方法。 1 function confirmEnding(str, targ ...
分类:其他好文   时间:2021-05-24 13:09:02    阅读次数:0
学习vue-filter
过滤器 用于文本格式化,数组数据的过滤和排序 全局过滤器 Vue.filter('',function(){}) 局部过滤器 new Vue({ el:"#app", filters:{ uppcase(){ } } }) 使用地方 管道符号添加到表达式后面 插值表达式 v-bind表达式 过滤器的 ...
分类:其他好文   时间:2021-05-24 13:00:08    阅读次数:0
liquidjs 兼容shopify liquid 的纯js 模板引擎
liquidjs 是兼容shopify liquid 的纯js 模板引擎,同时官方文档也比较完整 支持的特性 安全渲染(没有eval 以及Function 使用) shopify 兼容 零依赖 ts 支持 参考使用 app.js const { Liquid } = require('liquidj ...
分类:Web程序   时间:2021-05-24 12:21:30    阅读次数:0
node模块化之模块导出导入
//此时是等价的 exports.name = 'xxx' module.exports.sex = '男' //此时把module.export指向的对象改变,以module.exports为准 module.exports = { id:'1', girlfriend:{ name:'yyy' ...
分类:其他好文   时间:2021-05-24 12:21:09    阅读次数:0
65302条   上一页 1 ... 24 25 26 27 28 ... 6531 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!