将angularJs重定向到其他项目(redirect with angularJs to other project)
我的网址如下: http:// localhost:3000 / family /#/ savings / subscribe / 123456
在这个页面中,我想点击一个按钮将我重定向到另一个用骨干JS制作的项目的页面我尝试用href-和ng-href添加所需的URI
http://localhost:3000/admin#exemption
:但它总是将我重定向到http://localhost:3000/family/#/admin#exemption
angular.module('app', ['ng', 'ngRoute', 'ui.bootstrap', 'angularMoment', 'chart.js']) .config(fac['$routeProvider', function ($routeProvider) { $routeProvider .when('/index', { templateUrl: '/family/index', controller: 'IndexCtrl' }) .when('/family/exemption', { templateUrl: 'exemption-search-view' })
当我给出所需页面的模板时,我获得了html视图但是URI:
http://localhost:3000/family/#/admin#exemption
My URL is like : http://localhost:3000/family/#/savings/subscribe/123456
in this page, I want to click on a button to redirect me into other page of another project made with backbone JS I tried to add the needed URI with href- and ng-href
http://localhost:3000/admin#exemption
: but it always redirect me tohttp://localhost:3000/family/#/admin#exemption
angular.module('app', ['ng', 'ngRoute', 'ui.bootstrap', 'angularMoment', 'chart.js']) .config(fac['$routeProvider', function ($routeProvider) { $routeProvider .when('/index', { templateUrl: '/family/index', controller: 'IndexCtrl' }) .when('/family/exemption', { templateUrl: 'exemption-search-view' })
when i gave the template of the needed page, I obtain the html view but the URI :
http://localhost:3000/family/#/admin#exemption
原文:https://stackoverflow.com/questions/40590088
最满意答案
使用BC Math函数,您可以在32位机器上获得64位数字的按位否定,例如:
<?php define('MAX_UINT_64', '18446744073709551615'); $number_64bit = '1099511627520'; $negate_64bit = bcsub(MAX_UINT_64, $number_64bit, 0); var_dump($negate_64bit); ?>
它输出:
18446742974197924095
Using BC Math functions you can get bitwise negations of 64bit numbers on 32bit machines like:
<?php define('MAX_UINT_64', '18446744073709551615'); $number_64bit = '1099511627520'; $negate_64bit = bcsub(MAX_UINT_64, $number_64bit, 0); var_dump($negate_64bit); ?>
It outputs:
18446742974197924095
相关问答
更多-
反向32位整数(Reverse 32bit integer)[2022-03-15]
正如在评论中提到的,你必须先倒过来然后检查。 然而,这是一种不同的检查方式。 要检查你可以用适当的掩码&结果。 所以在你的情况下,限制是−2,147,483,648和2,147,483,647 ,它们的十六进制值是-0x80000000和0x7fffffff 在解释器中试试这个。 >>> 0x7fffffff 2147483647 >>> 2147483647 & 0x7fffffff #within limit 2147483647 超出限制的值,可以看到显示其他一些值。 >>> 214748364 ... -
使用BC Math函数,您可以在32位机器上获得64位数字的按位否定,例如: 它输出: 18446742974197924095 Using BC Math fun ...
-
您正在请求PROGRAM FILES文件夹,而不是SYSTEM文件夹。 请查看FOLDERID_System和FOLDERID_SystemX86 。 或者,使用FOLDERID_Windows获取Windows安装文件夹,然后将特殊的SysNative别名附加到其末尾,让文件系统重定向器根据文档找到您的实际文件夹: 32位应用程序可以通过将%windir%\ Sysnative替换为%windir%\ System32来访问本机系统目录 。 WOW64将Sysnative识别为一个特殊别名,用于指示文件系 ...
-
我最终在运行时检查远程进程是32位还是64位,然后在发送消息之前将正确的结构写入共享内存。 例如,即使在消息的调用者和接收者之间存在32位< - > 64位混合,以下是如何使用TVM_GETITEM消息: /* This template is basically a copy of the TVITEM struct except that * all fields which return a pointer have a variable type. This allows * creating ...
-
所以在调查了一下之后......我正在以错误的方式看问题。 下面是我如何解决问题。 $x = 686316060672; $y = 2; for($n = 1; $n < 65; $n++){ $x = floor($x / $y); if($x % 2){ printf('n=%d'."\n", $n); }// end if }// end for 这给了: n=21 n=23 n=24 n=25 n=27 n=30 n=31 n=32 n=33 n=34 n=35 n=36 n=39 So ...
-
带有nginx的PHP通常作为fastcgi应用程序运行( https://www.nginx.com/resources/wiki/start/topics/examples/phpfcgi/ )。 这将通过Windows上的TCP套接字进行通信 - 因此无论是远端的64位还是32位PHP都无关紧要。 在PHP方面,如果性能是一个关键驱动因素,那么你的新功能 - 你会考虑考虑使用php 7,因为它在php5系列上有很多性能提升。 php 7的开发在他们页面底部的谷歌文档电子表格上有一些基准测试https: ...
-
你想要_mm256_mullo_epi32()内在的。 来自英特尔优秀的在线内在指南 : 概要 __m256i _mm256_mullo_epi32 (__m256i a, __m256i b) #include "immintrin.h" Instruction: vpmulld ymm, ymm, ymm CPUID Flags: AVX2 描述 将打包的32位整数乘以a和b,生成中间64位整数,并将中间整数的低32位存储在dst中。 You want the _mm256_mullo_epi32 ...
-
INT最大尺寸为32位系统(INT max size for 32bit system)[2024-03-17]
你正在使用整个32位。 这只是默认输出函数将其解释为有符号整数。 如果你想显示值“raw”使用: printf("%u", -1); // %u for unsigned 由于PHP处理内部签名的整数,所以只能使用位算术,而不能使用加法/乘法等 - 如果你期望它们的行为与未签名的整数一样。 You are using the whole 32 bits. It's just that the default output functions interpret it as signed integ ... -
如果不安装另一个python,你可以使用env在默认的32/64位之间切换: $ python -c 'import sys; print sys.maxint' 9223372036854775807 $ export VERSIONER_PYTHON_PREFER_32_BIT=yes $ python -c 'import sys; print sys.maxint' 2147483648 请参阅OSX上的man python 。 您也可以使用arch -i386执行二进制文件: $ /usr/bi ...
-
32位g ++和64位g ++的printf()以不同的方式处理参数?(printf() in 32bit g++ and 64bit g++ deals arguments differently?)[2022-02-11]
由于您的变量long long ,因此打印它们的唯一正确的printf格式是%lld 。 使用其他任何东西都是在寻找麻烦并且是不确定的行为。 这适用于任何系统和任何编译器( IdeOne演示 ): #includeint main() { long long a=1,b=2,c=3; long long d=0x123456789ABC; long long e=0x000000000000; printf("%lld,%lld,%lld\n",a,b ...