调用方式如下: app.filter('filter2', function( $filter ) { return function( input) { return $filter('filter1')( input ); } });…
亚克力效果 在<如何在pyqt中实现窗口磨砂效果>和<如何在pyqt中实现win10亚克力效果>中,我们调用C++ dll来实现窗口效果,这种方法要求电脑上必须装有MSVC.Visual Studio装起来确实费时又占C盘空间,所以今天在python中直接调用 SetWindowCompositionAttribute,关于更多无边框窗体的解决方案可以参见<如何在pyqt中自定义无边框窗口>.下面是这次的亚克力效果(硝子太美了(๑¯∀¯๑)): 具体代码 结构体和枚举类…
web.config中配置 <?xml version="1.0" encoding="UTF-8"?> <configuration> <system.web> <globalization requestEncoding="utf-8" responseEncoding="utf-8"/> </system.web> </configuration>…
1.关闭VPS中IIS的FTP服务 2.FileZilla_Server 监听端口 21 3.FTP客户端端口为11311(看服务商给出的)…
这个应该不是什么新信息,但我却是现在才搞清楚. 今天又是在wordpress调用jquery,情况还是如此.无意中打开wordpress中jquery.js,然后对比code.jquery.com中的代码,发现wordpress中的jquery.js最后面是多了一行代码的: jQuery.noConflict(); 上面那行代码的意义是:释放jquery中的$变量.从而避免多个javascript库之间的冲突问题.我们只要在编写插件的时候jquery中要使用到$变量时,可用jQuery来代替.例…
using System; using System.Collections.Generic; using System.Text; using System.Windows.Forms; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace Hcsem { public class MyWebBrowser : System.Windows.Forms.WebBrowser…
1.直接禁用文件类型检测,在wp-config.php文件中,添加这样一句代码define('ALLOW_UNFILTERED_UPLOADS', true); 2.在functions.php里面,添加下面代码(最重要是黄色背景那2句): <? // 添加一个角色,允许地区编辑添加 add_role('dq_edit','地区编辑', array( 'level_3' => true, 'read' => true, 'edit_posts' => true, 'edit_pub…
add_filter( 'get_avatar' , 'my_custom_avatar' , 1 , 5 ); function my_custom_avatar( $avatar, $id_or_email, $size, $default, $alt) { if ( ! empty( $id_or_email->user_id ) ) { $avatar = "http://static.cnblogs.com/images/logo_small.gif"; }else{…
过滤器是用来格式化给用户展示的数据的. 在 HTML 中的模板绑定符号{{}} 内通过|符号来调用过滤器. 大写:{{ name | uppercase }} 也可以在 JS 中进行调用$filter 服务. app.controller('DemoController', ['$scope', '$filter', function($scope, $filter) { $scope.name = $filter('lowercase')('Ari'); }]); 向过滤器传参:{{1234.…
this this 表示当前对象 使用上细分的话,this有 this. 和this()的使用情况 ,下面我们开始细撸 this . 使用场景一: 在成员方法中,this.变量名 指带当前对象的变量,此时this.是可以省略的 输出 结果为 “3” ;在method()方法中,this.i=3 和i=3意思相同但注意, 如果在method()方法中,输入的是 int i=3.结果可以完全不同. 为什么呢?~~很显然.这样做的意思是说在方法中,重新定义一个局部变量i.并非指代当前对象啊. 使用场景…